Presentation is loading. Please wait.

Presentation is loading. Please wait.

Connect 4 Michael Yura.

Similar presentations


Presentation on theme: "Connect 4 Michael Yura."— Presentation transcript:

1 connect 4 Michael Yura

2 what's this all about? create connect 4
create a dynamic ai for connect 4 use reinforcement learning training against other ai's test different “aggressiveness” of learning

3 ai outline keeps track of the moves it does for each board it is presented with examines if it has won or lost the game changes the way it places pieces in the future depending on the game's outcome (reinforcement learning)‏ if won, will do what it did more often if lost, will do what it did less often

4 board data 1 [0,0;0][0,1;0][0,2;0][0,3;0][0,4;0][0,5;0][1,0;1][1,1;2][1,2;0][1,3;0][1,4;0][1,5;0][2,0;1][2,1;0][2,2;0][2,3;0][2,4;0][2,5;0][3,0;0][3,1;0][3,2;0][3,3;0][3,4;0][3,5;0][4,0;2][4,1;0][4,2;0][4,3;0][4,4;0][4,5;0][5,0;1][5,1;0][5,2;0][5,3;0][5,4;0][5,5;0][6,0;0][6,1;0][6,2;0][6,3;0][6,4;0][6,5;0] 2 [0,0;0][0,1;0][0,2;0][0,3;0][0,4;0][0,5;0][1,0;1][1,1;2][1,2;0][1,3;0][1,4;0][1,5;0][2,0;1][2,1;1][2,2;2][2,3;0][2,4;0][2,5;0][3,0;1][3,1;0][3,2;0][3,3;0][3,4;0][3,5;0][4,0;2][4,1;1][4,2;2][4,3;0][4,4;0][4,5;0][5,0;1][5,1;2][5,2;1][5,3;1][5,4;0][5,5;0][6,0;2][6,1;2][6,2;0][6,3;0][6,4;0][6,5;0] 3 [0,0;0][0,1;0][0,2;0][0,3;0][0,4;0][0,5;0][1,0;1][1,1;2][1,2;0][1,3;0][1,4;0][1,5;0][2,0;1][2,1;1][2,2;2][2,3;0][2,4;0][2,5;0][3,0;0][3,1;0][3,2;0][3,3;0][3,4;0][3,5;0][4,0;2][4,1;1][4,2;2][4,3;0][4,4;0][4,5;0][5,0;1][5,1;2][5,2;1][5,3;1][5,4;0][5,5;0][6,0;2][6,1;0][6,2;0][6,3;0][6,4;0][6,5;0]

5 board data 1 [0,0;0][0,1;0][0,2;0][0,3;0][0,4;0][0,5;0][1,0;1][1,1;2][1,2;0][1,3;0][1,4;0][1,5;0][2,0;1][2,1;0][2,2;0][2,3;0][2,4;0][2,5;0][3,0;0][3,1;0][3,2;0][3,3;0][3,4;0][3,5;0][4,0;2][4,1;0][4,2;0][4,3;0][4,4;0][4,5;0][5,0;1][5,1;0][5,2;0][5,3;0][5,4;0][5,5;0][6,0;0][6,1;0][6,2;0][6,3;0][6,4;0][6,5;0]

6 board

7 prob data [94.0,15.6,77.2,92.8,100.0,43.3,0.1,]

8 prob data [94.0,15.6,77.2,92.8,100.0,43.3,0.1,] Total = 423.0 94.0/423.0 (22.22%) chance of placing in Column 1 15.6/423.0 (3.69%) chance of placing in Column 2 77.2/423.0 (18.25%) chance of placing in Column 3 92.8/423.0 (21.94%) chance of placing in Column 4 100.0/423.0 (23.64%) chance of placing in Column 5 43.3/423.0 (10.27%) chance of placing in Column 6 0.1/423.0 (0.02%) chance of placing in Column 7

9 looking ahead to 3rd quarter
program ai to change its %'s depending on whether it wins or loses does an ai that is more “aggressive” (changes its %'s to a greater degree each time) learn to play better? Can an ai train itself?


Download ppt "Connect 4 Michael Yura."

Similar presentations


Ads by Google