News for hackers. Stuff that matters.
Re:Tictactoe in PyFL, my experimental functional language by detaro on Saturday December 11, 2021 @10:45AM (#29521640)
side note: Tic-Tac-Toe you can reasonably just brute-force all possible games to check if something plays perfect or not.
Re:Tictactoe in PyFL, my experimental functional language by armanboyaci on Saturday December 11, 2021 @05:36PM (#29524898)
Actually, the first moves of the players determines the result. And because of the symetries there are just 12 first moves.

My tweets about this topic: https://twitter.com/arman_boyaci/status/1442436923960827913?...

Re:Tictactoe in PyFL, my experimental functional language by detaro on Saturday December 11, 2021 @10:10PM (#29526780)
if you assume perfect play. Which you can't if you try to confirm your implementation plays perfectly.
Re:Tictactoe in PyFL, my experimental functional language by bade on Saturday December 11, 2021 @09:23PM (#29526536)
You sound like an expert. Are my heuristics unbeatable?
Re:Tictactoe in PyFL, my experimental functional language by armanboyaci on Sunday December 12, 2021 @12:49AM (#29527467)
For example, when X plays a corner, there is a possibility that your heuristic may play another corner right? In that situation X wins.
Re:Tictactoe in PyFL, my experimental functional language by bade on Saturday December 11, 2021 @10:59AM (#29521775)
I know, the point was to exercise the various PyFL features.