summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-15Don't pass the cards to the constructor of boardOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-15Rework the recycling of the cardsOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-15Simplify instructionsOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-15Specify the encoding to use when opening card filesOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-15Update reqs. since a different WS library is now usedOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-15Store cards as a JSON list instead of plain textOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-15Use enumerate(...) instead of range(len(...))Olivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-15Don't use getters and setters because it's PythonOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-15Add cosmetic changesOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-15Take the listen address and port as optional argumentsOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-14Use unittest machanism to assert on exceptionsOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-12Use python3 -m pytest syntax instead of pytestOlivier Gayot
On Debian, pytest is installed by the python2 package named python-pytest. On Archlinux, pytest is a python3 package installed by python-pytest. The use of python3 -m pytest allows to get rid of the discrepancy. Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-12Add unit tests for swiftstory.StatusOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-12Add unit tests for swifstory.cardsOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-05-12Add script to run the unit testsOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-03-29Change the websocket library for the standard oneOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-03-29Catch right type of exception when decoding JSONOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2020-03-29Fix build dependenciesOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-09-12Add systemd service fileOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-06-09Fix typo in the english versionOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-06-09Fix a few typos in the french translationOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09Fixed two typos in the french versionOlivier Gayot
fatasme -> fantasme sceau -> seau Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09fixed typo in cardOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09connect to the websocket on the same host using wss or wsOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09debianize the packageOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09use setuptools instead of only distutilsOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09added author to python packageOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09moved webapp files in the usr/share/swiftstory dirOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09removed bower.json fileOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09fixed build by renaming the packageOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09renamed webapp/ www/Olivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09renamed the project SwiftStoryOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-03-09do not rely on a symlink for the executableOlivier Gayot
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2015-06-27webapp: Fix error with safariOlivier Gayot
the use of String.startsWith() is non standard and fails in safari. fixed by replacing it by String.substring() + comparison Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-27handle the disconnection of the judgeOlivier Gayot
in case the judge disconnects, we give back the played cards to the players and they are demanded to elect a new one Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-25handle the multilingual supportOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-23handle the case when no cards are collectedOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-23server: fixed extra card given to the judgeOlivier Gayot
After designating the best card, the judge was given a new card. This patch fixed this behaviour. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-15rearchitecture the data filesOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-14removed the ui.html fileOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-14added an example with php -S in the READMEOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-14moved the webapp pages in the webapp/ dirOlivier Gayot
the procedure to install the webapp is described in the README file. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-14added the setup file for the serverOlivier Gayot
the procedure is described in the README. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-14use a python package instead of just modulesOlivier Gayot
The package is contained in the CAO/ folder. server.py is still at the root of the repository though. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-09README: explain how to setup and startOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-09mobile: handle the collection of the cards and the designationOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-09ui: allow to get the played cards from the ifacesOlivier Gayot
the card descripts and their associated callbacks are saved in the page. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-09mobile: allow a player to select a cardOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-09ui: allow to get the event associated with a cardOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-09ui: handle the changes of game state in a generic wayOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>