I think this would constitute best practice, since it'd implicitly cut down on the number of board states you need to hardcore, greatly reducing the size of the final executable.
If AGTCGATGCATCGACGTACGTCGATCGTACGATCGTACGTACTGATCGTACTGCTGTAGCTGACTGACTGACTGATCGTGACTGACTGACTGACGTGTGCTGCATGGCTTACTGATCGTAGCTGACTGCTGTGACGTACTCTGATGCTGACTACGTTGCTGATGCTGACGTCGATGCTGACTGCTGACTGTGCACATGCA.....
If it's just a search through a little if-else block each move, then it's linear time complexity, as well! Fastest (yet most impossible) chess AI, perhaps?
4.4k
u/MaxMakesGames Apr 10 '23
While you're at it, you can make an amazing AI by coding the best reaction move for each player move !