Skip to content

Commit

Permalink
fix: add missing caro win type ⬆️ 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker2770 committed Jul 24, 2024
1 parent c66f83e commit 940973c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/caro.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ using namespace std;
// 0 - empty, 1 - black, 2 - white, 3 - wall
const int WIN_SHAPES[][7] = {
{1, 1, 1, 1, 1, 0, 0},
{1, 1, 1, 1, 1, 0, 1},
{1, 1, 1, 1, 1, 0, 2},
{1, 1, 1, 1, 1, 0, 3},
{0, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1},
{1, 0, 1, 1, 1, 1, 1},
{2, 0, 1, 1, 1, 1, 1},
{3, 0, 1, 1, 1, 1, 1},
{2, 1, 1, 1, 1, 1, 0},
{2, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 2},
Expand All @@ -52,8 +58,14 @@ const int WIN_SHAPES[][7] = {
{1, 1, 1, 1, 1, 1, 3},
{2, 1, 1, 1, 1, 1, 3},
{2, 2, 2, 2, 2, 0, 0},
{2, 2, 2, 2, 2, 0, 1},
{2, 2, 2, 2, 2, 0, 2},
{2, 2, 2, 2, 2, 0, 3},
{0, 2, 2, 2, 2, 2, 0},
{0, 0, 2, 2, 2, 2, 2},
{1, 0, 2, 2, 2, 2, 2},
{2, 0, 2, 2, 2, 2, 2},
{3, 0, 2, 2, 2, 2, 2},
{1, 2, 2, 2, 2, 2, 0},
{1, 2, 2, 2, 2, 2, 2},
{0, 2, 2, 2, 2, 2, 1},
Expand Down

0 comments on commit 940973c

Please sign in to comment.