Total Pageviews

Wednesday, November 30, 2011

99 Bottles Of Beer In AW Code

====
Note: Aw Code is literally an object oriented language. Each object can take a limited amount code.
AW Code can not store or manipulate information.
====
Model: Sign5.rwx
Description[The output]
Action[create name sgn]

Model:pole1m.rwx
Description[shortcut #1]
Action[create name bbow, animate me . 1 1 999 astop; adone sign "bottles of beer on the wall" name=sgn]


Model:pole1m.rwx
Description[shortcut #2]
Action[create name bob, animate me . 1 1 999 astop; adone sign "bottles of beer ... take one down, pass it around" name=sgn]

Model:pole1m.rwx
Description[The Button]
Action[create color red;activate astart 99]

===

Model:pole1m.rwx
Description[99]
Action[create name 99, animate me . 1 1 999 astop; adone sign "99" name=sgn, astart bbow, astart 99a]

Model:pole1m.rwx
Description[99a]
Action[create name 99a, animate me . 1 1 2000 astop; adone sign "99" name=sgn, astart bob, astart 99b]

Model:pole1m.rwx
Description[99b]
Action[create name 99b, animate me . 1 1 3000 astop; adone sign "99" name=sgn, astart bbow, astart 98]

===

Model:pole1m.rwx
Description[98]
Action[create name 98, animate me . 1 1 2000 astop; adone sign "98" name=sgn, astart bbow, astart 98a]

Model:pole1m.rwx
Description[98a]
Action[create name 98a, animate me . 1 1 2000 astop; adone sign "98" name=sgn, astart bob, astart 98b]

Model:pole1m.rwx
Description[98b]
Action[create name 98b, animate me . 1 1 3000 astop; adone sign "98" name=sgn, astart bbow, astart 97]

===

Model:pole1m.rwx
Description[97]
Action[create name 97, animate me . 1 1 2000 astop; adone sign "98" name=sgn, astart bbow, astart 97a]

Model:pole1m.rwx
Description[98a]
Action[create name 97a, animate me . 1 1 2000 astop; adone sign "97" name=sgn, astart bob, astart 97b]

Model:pole1m.rwx
Description[97b]
Action[create name 97b, animate me . 1 1 3000 astop; adone sign "97" name=sgn, astart bbow, astart 96]

===

=== Snip ===

===

Model:pole1m.rwx
Description[01]
Action[create name 01, animate me . 1 1 2000 astop; adone sign "01" name=sgn, astart bbow, astart 01a]

Model:pole1m.rwx
Description[98a]
Action[create name 01a, animate me . 1 1 2000 astop; adone sign "01" name=sgn, astart bob, astart 01b]

Model:pole1m.rwx
Description[98b]
Action[create name 98b, animate me . 1 1 3000 astop; adone sign "no more" name=sgn, astart bbow]

No comments:

Post a Comment