PyWeek - Unicorp Cats - feedback

Did not work

icemoon97

I tried to run run.py in python 3, as the README said, but I got this syntax error:

Traceback (most recent call last):
File "C:\Users\b\Desktop\Law__Border_Collie\Law & Border Collie\run.py", line 3, in <module>
from law_bc.game.game import Game
File "C:\Users\b\Desktop\Law__Border_Collie\Law & Border Collie\law_bc\game\game.py", line 122
print "k " + str(kase.duration) + " "+ str(kase.time_period_creation) + " " + str(self.time_period)

which suggests to me maybe it was meant to be run in python 2?

Fun 1 Prod 2 Inno 3

DR0ID

It seems unfinished..... also not sure why I had to run th 2to3 fixer first to play it with py 3.8 (readme says py >= 3.4!!)

Fun 2 Prod 2 Inno 4

PyTM30

It's unfinished, as you say. The readme says it requires python 3 but it actually requires python 2 and so pyglet<=1.4.10 as that's the last release to support python 2. The border collie icon is good.

Did not work

mit-mit

from law_bc.game.game import Game
File "game.py", line 122
print "k " + str(kase.duration) + " "+ str(kase.time_period_creation) + " " + str(self.time_period)
SyntaxError: invalid syntax

Does this game require python 2?

Fun 1 Prod 2 Inno 3

yanigisawa

It is a neat idea, unfortunately all I had to do was pick the first officer for each mission and they succeeded the first two rounds. I skipped one missed and everybody died, then the game crashed.

Fun 3 Prod 1 Inno 3

fireclaw

After getting into how this game was actually played, it was quite nice. It misses a lot of polish and there were things in the code which had to be fixed to be usable with python3 at all despite your readme stating it should work with 3.4 and above.
Aside of that the story could become good and if you'd polish this up and add some more features, this could become a nice game.

Fun 2 Prod 1 Inno 3

Avongard

Assigning cops to various jobs is a promising concept. Would've loved this as a more complete game.

Fun 1 Prod 2 Inno 2

speedlimit35

The game didn't work for me at first because the print was using quotation marks instead of parenthesis (python3 uses parenthesis for print).

After getting the game to work, I just pressed space and return. There was not much gameplay. I read the instructions but they are too complicated. This game would really benefit from a tutorial.
Also, the game crashed after playing for a while and this is the error I got:

2021-04-09 20:04:41.603 Python[83173:3614332] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/bz/xkw8wzcn71vg5w7b0k3tdt100000gn/T/org.python.python.savedState
Traceback (most recent call last):
File "Desktop/pyweek31/Law & Border Collie/run.py", line 19, in <module>
pyglet.app.run()
File "/usr/local/lib/python3.9/site-packages/pyglet/app/__init__.py", line 107, in run
event_loop.run()
File "/usr/local/lib/python3.9/site-packages/pyglet/app/base.py", line 167, in run
timeout = self.idle()
File "/usr/local/lib/python3.9/site-packages/pyglet/app/base.py", line 237, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "/usr/local/lib/python3.9/site-packages/pyglet/clock.py", line 292, in call_scheduled_functions
item.func(now - item.last_ts, *item.args, **item.kwargs)
File "Desktop/pyweek31/Law & Border Collie/law_bc/ui/gamerunner.py", line 65, in update
self.game.update(self.keystates)
File "Desktop/pyweek31/Law & Border Collie/law_bc/game/game.py", line 208, in update
self.list_of_vacant_cops[self.position].list_of_kases.append(self.list_of_new_kases[self.kase_selected])
IndexError: list index out of range

Did not work

Cosmologicon

It's an interesting idea. It's definitely a little hard to tell what strategy to use for different missions just based on their titles. I picked DNW because it kept crashing on an IndexError, so I didn't get to see very much of the game. Maybe I would have gotten the hang of it.

Did not work

Green_boyY

requires Python >= 3.4, uses Python2 syntax

(venv) C:\Users\me\Downloads\pyweek-judging\31\law-border-collie\Law & Border Collie>py run.py
Traceback (most recent call last):
File "C:\Users\me\Downloads\pyweek-judging\31\law-border-collie\Law & Border Collie\run.py", line 3, in <module>
from law_bc.game.game import Game
File "C:\Users\me\Downloads\pyweek-judging\31\law-border-collie\Law & Border Collie\law_bc\game\game.py", line 122
print "k " + str(kase.duration) + " "+ str(kase.time_period_creation) + " " + str(self.time_period)

Did not work

MasterPice

not runnable,

after fixing it to run, it still did not do that much ( menu -> crash ( index out of range))

Did not work

doodletaco

At first I encountered a problem with some print statements that weren't commented out, but after trying to put all the cops on patrol, the game crashed due to an index out of range error.

Traceback (most recent call last):
File "D:\Coding\Other_Peoples_Code\Pyweek 31 entries\Law & Border Collie\run.py", line 19, in <module>
pyglet.app.run()
File "C:\Users\doodl\AppData\Local\Programs\Python\Python39\lib\site-packages\pyglet\app\__init__.py", line 107, in run
event_loop.run()
File "C:\Users\doodl\AppData\Local\Programs\Python\Python39\lib\site-packages\pyglet\app\base.py", line 167, in run
timeout = self.idle()
File "C:\Users\doodl\AppData\Local\Programs\Python\Python39\lib\site-packages\pyglet\app\base.py", line 237, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "C:\Users\doodl\AppData\Local\Programs\Python\Python39\lib\site-packages\pyglet\clock.py", line 292, in call_scheduled_functions
item.func(now - item.last_ts, *item.args, **item.kwargs)
File "D:\Coding\Other_Peoples_Code\Pyweek 31 entries\Law & Border Collie\law_bc\ui\gamerunner.py", line 65, in update
self.game.update(self.keystates)
File "D:\Coding\Other_Peoples_Code\Pyweek 31 entries\Law & Border Collie\law_bc\game\game.py", line 211, in update
self.list_of_vacant_cops[self.position].list_of_kases.append(self.list_of_new_kases[self.kase_selected])
IndexError: list index out of range