Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea/
__pycache__/
.DS_Store/
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3

WORKDIR /app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "./server.py" ]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![logo](/evolution_logo.png)

## Evolution Game Server
version 0.1.1

Expand All @@ -11,3 +12,12 @@ version 0.1.1

## Bugs
- HTTP 500 code after beginning game
- add test.py for server testing

## Bugs
- no turns changing

## Development guide
1. Install docker
2. Run `docker build -t evolution-server .` to build docker image
3. Setup project sdk and run configuration in pycharm/idea
Empty file added requirements.txt
Empty file.
6 changes: 2 additions & 4 deletions server.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
#!/usr/bin/env python

import argparse
from game import Game
from room import Room
from deck import Deck
from player import Player
import creature, ability
import os
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from http.server import HTTPServer, BaseHTTPRequestHandler
import json
#from exceptions import EvolutionServerException

class Server:
Server.version = "0.1.1"
VERSION = "0.1.1" # wtf?

def __init__(self):
# why can't i leave it empty?
Expand Down