Jarvis icon indicating copy to clipboard operation
Jarvis copied to clipboard

Breakout game impl

Open vvash17 opened this issue 5 years ago • 1 comments

addition of game breakout

vvash17 avatar Jul 26 '20 16:07 vvash17

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!

pnhofmann avatar Jul 29 '20 15:07 pnhofmann