top of page
Search
  • Ryan, Anthony, Anni

Day 3: Programming!

Updated: Dec 10, 2020

Today our robot was born!


Before we started programming, we found it important to note that the program can only read one function's output: move. Consequently, we knew that we had to make many of our own functions in order to maintain the organization and clarity of our program, so the move function would not become too cluttered.


We started off by writing our own "move" function, so we could dictate which action needed to be performed. It allows the Agent to perform a certain action in a certain direction; it tells the Agent to move or shoot — either up, down, left, or right.


We also wrote two more functions. One of the functions determines whether or not a specific tile is within the bounds of the board. The other determines if that tile is deemed to be "safe". A tile is safe if it is not possible for it to contain the Wumpus or a pit — it is unsafe if either is possible. This avoids any dangerous and/or unnecessary moves.




5 views0 comments

Recent Posts

See All

Day 10: Final Optimizations

As it's now time for battle, ARA-24 should be prepared for anything! Today we are trying to make small changes that will optimize ARA-24...

Comments


Post: Blog2_Post
bottom of page