From f235a5cb76aaec0c22a4cd5f97973d3d41593443 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 2 Mar 2017 22:09:58 +0100 Subject: Indicate whether a bot is active on the printout --- world.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/world.cpp b/world.cpp index fecd956..b38979a 100644 --- a/world.cpp +++ b/world.cpp @@ -323,8 +323,9 @@ void World::print(ScreenBuffer &sb) const { for(int x=0;xheading%4]; - sb.printf("%c%c",c,c); + char c2="^>v<"[board[y][x]->heading%4]; + char c1=board[y][x]->active?c2:'X'; + sb.printf("%c%c",c1,c2); } sb.printf(" "); } -- cgit v1.2.3-70-g09d2