From 1ad8073e792ec152120f785d0172e37c2f6c2a59 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Tue, 14 Mar 2017 19:50:12 +0100 Subject: Add support for $Fields --- world.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/world.cpp b/world.cpp index 7f78253..5d82073 100644 --- a/world.cpp +++ b/world.cpp @@ -84,7 +84,13 @@ Instruction Robot::resolve(World &world){ break; } case arg_t::constant: - assert(false); + assert(!arg.remote); + if(arg.name=="fields"){ + arg.type=arg_t::number; + arg.num=SIZE; + } else assert(false); + break; + default: assert(false); } -- cgit v1.2.3-54-g00ecf