ocadotechnology/aimmo

View on GitHub
aimmo-game-worker/simulation/action.py

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

class MoveAction(Action):
def __init__(self, direction):
self.direction = direction
 
def serialise(self):
Severity: Major
Found in aimmo-game-worker/simulation/action.py and 1 other location - About 1 hr to fix
aimmo-game-worker/simulation/action.py on lines 64..71

Similar blocks of code found in 2 locations. Consider refactoring.
Open

class AttackAction(Action):
def __init__(self, direction):
self.direction = direction
 
def serialise(self):
Severity: Major
Found in aimmo-game-worker/simulation/action.py and 1 other location - About 1 hr to fix
aimmo-game-worker/simulation/action.py on lines 24..31
Category
Status