From 819a1064c5142a9b2f04ff8149d34fc915c18322 Mon Sep 17 00:00:00 2001 From: Charlie Blake Date: Fri, 8 Jun 2018 10:31:22 +0100 Subject: Refactor legal moves gen and moves logic --- src/main/input-output/input/json-parsing/deal_parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/input-output/input/json-parsing/deal_parser.cpp') diff --git a/src/main/input-output/input/json-parsing/deal_parser.cpp b/src/main/input-output/input/json-parsing/deal_parser.cpp index f841c8d..29ac3b1 100644 --- a/src/main/input-output/input/json-parsing/deal_parser.cpp +++ b/src/main/input-output/input/json-parsing/deal_parser.cpp @@ -3,7 +3,7 @@ // #include "deal_parser.h" -#include "../../../game/game_state.h" +#include "../../../game/search-state/game_state.h" #include "json_helper.h" using namespace std; @@ -166,9 +166,9 @@ void deal_parser::parse_reserve(game_state &gs, const Document& doc) { json_helper::json_parse_err("Incorrect reserve size"); } - for (game_state::pile_ref i = 0; i < json_card_arr.Size(); i++) { + for (pile::ref i = 0; i < json_card_arr.Size(); i++) { assert(json_card_arr[i].IsString()); - game_state::pile_ref pr = gs.original_reserve[0]; + pile::ref pr = gs.original_reserve[0]; if (!gs.rules.reserve_stacked) pr += i; gs.place_card(pr, card(json_card_arr[i].GetString())); } -- cgit v1.2.1