From c57aed1a546f0dc0a6efcb06d10125e2dbd34d60 Mon Sep 17 00:00:00 2001 From: zedarider Date: Tue, 8 Nov 2016 23:33:34 +0000 Subject: managed and going to merge --- include/chess_ai.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'include/chess_ai.hpp') diff --git a/include/chess_ai.hpp b/include/chess_ai.hpp index 8c6eb50..efde215 100644 --- a/include/chess_ai.hpp +++ b/include/chess_ai.hpp @@ -102,15 +102,12 @@ iterator vector_iterator; // move a piece from coordinates void move_piece(unsigned x, unsigned y); + void move_piece(unsigned orig_x, unsigned orig_y, unsigned dest_x, + unsigned dest_y); + void move_piece(chess_piece piece, unsigned x, unsigned y); - // find a piece on the board using coordinates - void find_piece(unsigned x, unsigned y); - - // iterate through the list with point - void iterate_board(chess_piece piece, square_iterator& it); - // iterate through the list and return the pointer to change - void iterate_board(unsigned x, unsigned y, square_iterator& it); + square_iterator& iterate_board(square_iterator& it, unsigned x, unsigned y); -- cgit