-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathToDo and notes.txt
34 lines (19 loc) · 1.09 KB
/
ToDo and notes.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
To do list for Ques 2
Diff python files for:
Blob generation function -> random (With a bias? Bias could be part of input). Return image file and dictionary for each blob.
Play the game function -> takes parameters as input, whether stoch or determ, returns the list of coordinates for the plot that gets generated. Must be evenly spaced on xaxis
Scoring function -> Obtain score by seeing if returned list of coordinates varies within a certain amount from blobs. Then plot the blobs (hit blobs in a different colour?) and simulation.
New game function - generate different blobs - reset button appear after a certain number of tries?
switch for the Stochastic/Deterministic input. See link below.
generateblobs.py
game.py
score.py
Plotly javascript for plotting:
https://plot.ly/javascript/line-charts/
http://bootstrapswitch.com/
def scoretest():
hit_blobs, nothit_blobs = ([(5),(10)], [(10,15,20,25,30,35,40,45,50),(2,20,30,40,56,4,87,31,52)])
return hit_blobs, nothit_blobs
def playgametest(param1, param2):
x = [(1,10,20,30,40,50),(2,3,4,20,40,43),(2,6,8,0,7,0)]
return x