Nim Project
From Huben's Wiki
Line 57: | Line 57: | ||
== Graphical Nim == | == Graphical Nim == | ||
+ | ===D=== | ||
# Ch. 15 (Graphics) | # Ch. 15 (Graphics) | ||
## start with the box from studentdisk/Ch15/Exercises/Drawings.java | ## start with the box from studentdisk/Ch15/Exercises/Drawings.java | ||
## change the box to a filled circle | ## change the box to a filled circle | ||
+ | ===C+=== | ||
+ | # Read "Creating the graphical Nim board." | ||
# Build a pyramid of circles with height and base of 4 circles. | # Build a pyramid of circles with height and base of 4 circles. | ||
## start with a right triangle | ## start with a right triangle | ||
Line 67: | Line 70: | ||
### use min of width and height | ### use min of width and height | ||
### you ought to be able to have pyramids of other sizes too | ### you ought to be able to have pyramids of other sizes too | ||
+ | ===B+=== | ||
# Use pyramid to display board instead of text | # Use pyramid to display board instead of text | ||
− | + | ===A+=== | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
# Read next two chapters, build with point and click interface. | # Read next two chapters, build with point and click interface. |