mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
agent::move_dir(): Implement
This commit is contained in:
parent
56726a6c05
commit
b305a41cfc
3 changed files with 24 additions and 0 deletions
10
main.cc
10
main.cc
|
@ -12,5 +12,15 @@ main(int argc, char *argv[])
|
|||
class agent agent(0, agentpos);
|
||||
|
||||
map.print_map();
|
||||
std::cout << '\n';
|
||||
|
||||
agent.move_dir(1, 0);
|
||||
map.print_map();
|
||||
std::cout << '\n';
|
||||
|
||||
agent.move_dir(0, -1);
|
||||
map.print_map();
|
||||
std::cout << '\n';
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue