Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. public class JustinChips
  2. {
  3.   public int play(int pile, int lastmove)
  4.   {
  5.     // if possible, take the entire pile
  6.     // otherwise, take as many as possible without automatically losing (less than 1/3 of the pile)
  7.     // if that is not legal, just take 1.
  8.   }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement