Jarvis
Jarvis copied to clipboard
Breakout game impl
addition of game breakout
If this does not look nice...
cls: command not found
life decreased
Some error occurred, please open an issue on github!
Here is error:
Traceback (most recent call last):
File "jarviscli/CmdInterpreter.py", line 287, in try_do
do(self, s)
File "jarviscli/plugin.py", line 208, in run
self._backend[0](jarvis.get_api(), s)
File "/home/phil/git/Jarvis/jarviscli/plugins/breakout.py", line 14, in breakoutRunner
p1 = Process(target=breakout())
File "/home/phil/git/Jarvis/jarviscli/plugins/breakout.py", line 88, in breakout
game_board[ball_y][ball_x] = '*'
IndexError: list index out of range
cls on linux/mac is probably clear. IndexError-crash needs obviously to be fixed.
Unfortunately noticed pynput currently does not work with wayland (new Linux Display server protocol); so to warn you, I'll probably add small check to disable this plugin on wayland.
But really nice!