Skip to content

Commit

Permalink
Create game folder
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGoncalvesUA committed Jan 25, 2023
1 parent ba40f6d commit c309775
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 63 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ _Recomenda-se a criação de um ambiente virtual (virtualenv)._

## Execução do projeto
Servidor:
`$ python3 server.py`
`$ python3 game/server.py`

*Viewer*:
`$ python3 viewer.py`
`$ python3 game/viewer.py`

Cliente:
- `$ python3 client.py` (para jogar manualmente com as setas)
- `$ python3 game/client.py` (para jogar manualmente com as setas)
- `$ python3 student.py` (para correr o agente inteligente)

## Créditos
Expand Down
2 changes: 1 addition & 1 deletion auxiliary_functions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from common import *
from game.common import *

""" Auxiliary functions for Rush Hour Agent"""

Expand Down
Empty file added game/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion game.py → game/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, x: int = 8, y: int = 8) -> None:
logger.info("Game")

self.levels = {}
with open("levels.txt", "r") as f:
with open("game/levels/levels.txt", "r") as f:
for lvl, map_str in enumerate(f.readlines(), start=1):
map = Map(map_str.strip())
self.levels[map.pieces] = map
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
57 changes: 0 additions & 57 deletions report.md

This file was deleted.

2 changes: 1 addition & 1 deletion student.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import json
import os
import websockets
from common import *
from game.common import *
from tree_search import *
from auxiliary_functions import moveCursor, detectStuck, detectCrazy

Expand Down

0 comments on commit c309775

Please sign in to comment.