From d76f2f13ef9278c141162ff07f6bf258d2c26cab Mon Sep 17 00:00:00 2001 From: Tait Hoyem <44244401+TTWNO@users.noreply.github.com> Date: Mon, 8 Apr 2019 00:48:14 +0000 Subject: [PATCH] Remove unused variables, and justin's old bishop code --- src/functions.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/functions.cpp b/src/functions.cpp index d3049d1..9c30cda 100755 --- a/src/functions.cpp +++ b/src/functions.cpp @@ -46,8 +46,6 @@ std::vector get_all_moves(Position pn, std::array board std::vector pns; int x = pos_to_pair(pn).first; int y = pos_to_pair(pn).second; - int dx; - int dy; switch(pt){ case PieceType::B_ROOK: case PieceType::W_ROOK: @@ -75,35 +73,7 @@ std::vector get_all_moves(Position pn, std::array board break; } } - /* - if (((i>x) && (i<8)) && ((j>y) && (j<8))) - { - dx = i-x; - dy = j-y; - if (dx == dy){pns.push_back(pair_to_pos(std::make_pair(x+dx,y+dy)));} } - if (((i>=0) && (iy) && (j<8))) - { - dx = i+1; - dy = j-y; - if (dx == dy){pns.push_back(pair_to_pos(std::make_pair(x-dx,y+dy)));} - } - if (((i>=0) && (i=0) && (jx) && (i<8)) && ((j>=0) && (j