Skip to content

Commit

Permalink
deploy: cbf1ce1
Browse files Browse the repository at this point in the history
  • Loading branch information
Askaholic committed Jan 1, 2024
1 parent c21153b commit a43a6f9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 30 deletions.
30 changes: 12 additions & 18 deletions games/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -703,16 +703,14 @@ <h1 class="title">Module <code>server.games.game</code></h1>
&#34;&#34;&#34;
A subset of checks that need to be overridden in coop games.
&#34;&#34;&#34;
if None in self.teams or not self.is_even:
await self.mark_invalid(ValidityState.UNEVEN_TEAMS_NOT_RANKED)
return

# TODO: This validity state seems to be impossible to get because it is
# already covered by UNEVEN_TEAMS_NOT_RANKED above.
if len(self.players) &lt; 2:
await self.mark_invalid(ValidityState.SINGLE_PLAYER)
return

if None in self.teams or not self.is_even:
await self.mark_invalid(ValidityState.UNEVEN_TEAMS_NOT_RANKED)
return

valid_options = {
&#34;Victory&#34;: (Victory.DEMORALIZATION, ValidityState.WRONG_VICTORY_CONDITION)
}
Expand Down Expand Up @@ -1722,16 +1720,14 @@ <h2 class="section-title" id="header-classes">Classes</h2>
&#34;&#34;&#34;
A subset of checks that need to be overridden in coop games.
&#34;&#34;&#34;
if None in self.teams or not self.is_even:
await self.mark_invalid(ValidityState.UNEVEN_TEAMS_NOT_RANKED)
return

# TODO: This validity state seems to be impossible to get because it is
# already covered by UNEVEN_TEAMS_NOT_RANKED above.
if len(self.players) &lt; 2:
await self.mark_invalid(ValidityState.SINGLE_PLAYER)
return

if None in self.teams or not self.is_even:
await self.mark_invalid(ValidityState.UNEVEN_TEAMS_NOT_RANKED)
return

valid_options = {
&#34;Victory&#34;: (Victory.DEMORALIZATION, ValidityState.WRONG_VICTORY_CONDITION)
}
Expand Down Expand Up @@ -3160,16 +3156,14 @@ <h1 id="params">Params</h1>
&#34;&#34;&#34;
A subset of checks that need to be overridden in coop games.
&#34;&#34;&#34;
if None in self.teams or not self.is_even:
await self.mark_invalid(ValidityState.UNEVEN_TEAMS_NOT_RANKED)
return

# TODO: This validity state seems to be impossible to get because it is
# already covered by UNEVEN_TEAMS_NOT_RANKED above.
if len(self.players) &lt; 2:
await self.mark_invalid(ValidityState.SINGLE_PLAYER)
return

if None in self.teams or not self.is_even:
await self.mark_invalid(ValidityState.UNEVEN_TEAMS_NOT_RANKED)
return

valid_options = {
&#34;Victory&#34;: (Victory.DEMORALIZATION, ValidityState.WRONG_VICTORY_CONDITION)
}
Expand Down
20 changes: 8 additions & 12 deletions games/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1041,16 +1041,14 @@ <h3>Class variables</h3>
&#34;&#34;&#34;
A subset of checks that need to be overridden in coop games.
&#34;&#34;&#34;
if None in self.teams or not self.is_even:
await self.mark_invalid(ValidityState.UNEVEN_TEAMS_NOT_RANKED)
return

# TODO: This validity state seems to be impossible to get because it is
# already covered by UNEVEN_TEAMS_NOT_RANKED above.
if len(self.players) &lt; 2:
await self.mark_invalid(ValidityState.SINGLE_PLAYER)
return

if None in self.teams or not self.is_even:
await self.mark_invalid(ValidityState.UNEVEN_TEAMS_NOT_RANKED)
return

valid_options = {
&#34;Victory&#34;: (Victory.DEMORALIZATION, ValidityState.WRONG_VICTORY_CONDITION)
}
Expand Down Expand Up @@ -2479,16 +2477,14 @@ <h1 id="params">Params</h1>
&#34;&#34;&#34;
A subset of checks that need to be overridden in coop games.
&#34;&#34;&#34;
if None in self.teams or not self.is_even:
await self.mark_invalid(ValidityState.UNEVEN_TEAMS_NOT_RANKED)
return

# TODO: This validity state seems to be impossible to get because it is
# already covered by UNEVEN_TEAMS_NOT_RANKED above.
if len(self.players) &lt; 2:
await self.mark_invalid(ValidityState.SINGLE_PLAYER)
return

if None in self.teams or not self.is_even:
await self.mark_invalid(ValidityState.UNEVEN_TEAMS_NOT_RANKED)
return

valid_options = {
&#34;Victory&#34;: (Victory.DEMORALIZATION, ValidityState.WRONG_VICTORY_CONDITION)
}
Expand Down

0 comments on commit a43a6f9

Please sign in to comment.