Tic-Tac-Toe
Caution, the evil opponent should be unbeatable! If you can win against it, let me know.
Things you'll need:
Lines of code: 1,452
Statistics below are based on 10,000 total games played between all the computer opponents (1,000 games per match).
Easy will:
| win/lose: |
75% |
| stalemate: |
25% |
|
Medium will:
| win: |
35% |
| lose: |
29% |
| stalemate: |
36% |
|
Hard will:
| win: |
50% |
| lose: |
11% |
| stalemate: |
39% |
|
Evil will:
| win: |
66% |
| lose: |
0% |
| stalemate: |
34% |
|
|
Medium will:
| win/lose: |
64% |
| stalemate: |
36% |
|
Hard will:
| win: |
32% |
| lose: |
21% |
| stalemate: |
47% |
|
Evil will:
| win: |
40% |
| lose: |
0% |
| stalemate: |
60% |
|
|
|
Hard will:
| win/lose: |
42% |
| stalemate: |
58% |
|
Evil will:
| win: |
6% |
| lose: |
0% |
| stalemate: |
94% |
|
|
|
|
Evil will:
| win/lose: |
0% |
| stalemate: |
100% |
|