Nim Project
From Huben's Wiki
(→C-:) |
(→Graphical Nim) |
||
Line 48: | Line 48: | ||
== Graphical Nim == | == Graphical Nim == | ||
# Ch. 15 (Graphics) | # Ch. 15 (Graphics) | ||
− | ## | + | ## start with the box from studentdisk/Ch15/Exercises/Drawings.java |
+ | ## change the box to a filled circle | ||
# 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 55: | Line 56: | ||
## adjust coords to allow pyramid to resize with window | ## adjust coords to allow pyramid to resize with window | ||
### use min of width and height | ### use min of width and height | ||
+ | ### you ought to be able to have pyramids of other sizes too | ||
# Use pyramid to display board instead of text | # Use pyramid to display board instead of text | ||
# Optional: add computer player misere version (lose if take last) | # Optional: add computer player misere version (lose if take last) |