Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def whoseMove(lastPlayer, win)
- if lastPlayer == "white" and win == true then
- return "white"
- end
- if lastPlayer == "white" and win == false then
- return "black"
- end
- if lastPlayer == "black" and win == true then
- return "black"
- end
- if lastPlayer == "black" and win == false then
- return "white"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment