-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrequirements.txt
executable file
·57 lines (43 loc) · 2.74 KB
/
requirements.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#Requirements for the Server
#DONE 1. Lage et nytt spill (Setup)
#DONE 2. Se liste over eksisterende spill
#DONE 3. Joine eksisterende spill (som ikke er p�begynt)
#DONE 4. Logge inn med brukernavn/passord (kanskje bruke en open API, facebook, google login etc)
#Game funksjonalitet
Alle actions/metoder logger til et visst sted. Denne loggen blir alltid displayet for alle spillerne. Bedre med for mye info enn for lite
<<User>> <<Action>>
#Setup (server side)
1.0 - Server starter en asynchronous tr�d der alle random ting blir laget. Wonder velget, kultur kort, units, huts, tiles, city states, civs.
#DONE 1.0.1 - Hvordan lagring av dette skal bli vet jeg ikke enda. Beste er � cache det i minnet f�rst. Vil helst ikke commite randomiseringen. Mulig det beste er � enten bare skrive til disk. (Enten serialisering eller filer der ting er sortert ut fra random), s� bare velger man fra f�rste linje osv
#DONE 1.0.2 - Lage unit test for reshuffle. S� dersom alle ting er brukt opp, s� skal det reshuffles og skrives over i filen igjen
#DONE 1.1 - N�r man lager et nytt spill skal man velge antall spillere. Kan eventuelt begynne med fixed 4 player
#DONE 1.2 - Random CIV #public
#DONE 1.3 - Random color #public
#DONE 1.4 - Random Wonders #public, #server m� lage midieval og modern, lagre
#DONE 1.5 - Random brett #public
#DONE 2.0 - Adding security
2.1 All rest calls except listing all games should be secure
2.2 Only the players can see their games
2.3 Read the techs and store them in PBF
#DONE 3.0 Create User
3.1 Reveal playing field. <-- Each PBF should have a place where players can hidden items, units and tech
Logging and Draws
4.0 Every action user takes must be logged
4.1 Logging is both private and public. The private should include the item name
whilst public should just have the type.
4.2 Every draw can be undoed, <-- Will create a voting where all players must agree before it is undoed
4.3 Each private log/draw can be revealed public. This is done when user picks a civ, and then reveals it
Nice to have
1.6.1 - Noen civs skal ha flere units, dette kan hardkodes basert p� civ (Best to postpone this, and let users draw units them selves)
4.4 A tab, where every player can see what other players have as hidden items which have not yet been revealed
Example:
private:
<date & time> - You drew civ Japan - <Request undo>
public
<date & time> - <<user>> drew Civ
Hver gang det gj�res en action, skal dette logges p� siden av skjermen, f.eks <<User>> chose civ Japan
#Battle
Need to decide how to proceed with battle
#TODO
- Create method that logs draw and prints nicely
#DONE - Method that can perform undo, find the type and item and put back in the deck and reshuffle. Either put the item in the back, or pick random index and put it back