I wanted to implement the game of Tic Tac Toe using a functional language (in my case, Scala) but I'm unsure how to go about managing the board game state after each player makes their move.
I understand that FP avoids mutating global state, but how does this work in the case of a board game?
Aucun commentaire:
Enregistrer un commentaire