Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class JustinChips
- {
- public int play(int pile, int lastmove)
- {
- // if possible, take the entire pile
- // otherwise, take as many as possible without automatically losing (less than 1/3 of the pile)
- // if that is not legal, just take 1.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement