Game-Bot
Game-Bot copied to clipboard
The key presses being passed to game_control.py aren't formatted right
I kept getting errors when I tried to run create_dataset.py
so I did some debugging and found that, for example, if I press the a key, it is passed to get_id
as 'a'
, which leads to an error saying that 'a'
can't be found in the array. If I manually replace return get_keys().index(key)
with return get_keys().index('a')
it gives the same error which is expected. But, if I replace it with return get_keys().index("a")
, it finds it. Thus, it's an issue with how it's being passed to get_id
or an issue with get_id
itself.