Lugsole.net long logo

AI 21 Flags Backup

Author: Lugsole

This is a demo of what can be done with a little AI in the web browser. This is an implementation of an AI that plays the "tye 21" that was played on the "Survivor" TV show. The game rules are quite simple. There are 21 flags and 2 teams/players. The players alternate turns every round. Every turn a team closes either one, two or three flags. The objective it to get the last flag.

Inital Matrix

\begin{bmatrix}00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\\end{bmatrix}

Table of stats

InputCorrect AnswerAI answerTraning roundsConfidence
11
22
33
40
51
62
73
80
91
102
113
120
131
142
153
160
171
182
193
200
211

Resulting Matrix

\begin{bmatrix}00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\00.00&00.00&00.00&00.00\\\end{bmatrix}