Mods
This commit is contained in:
parent
12145b9020
commit
dc12ba7859
|
@ -43,7 +43,7 @@ pipx install git+https://github.com/madprops/cromulant --force
|
|||
## Algorithm
|
||||
|
||||
A random ant is picked based on weights (oldest update date weighs more).
|
||||
Then a random number between 1 and 10 is picked.
|
||||
Then a random number between 0 and 12 is picked.
|
||||
For each number an action happens to produce an update.
|
||||
|
||||
The top score is calculated as (Triumph - Hits).
|
||||
|
|
|
@ -166,10 +166,14 @@ class Game:
|
|||
if not ant:
|
||||
return
|
||||
|
||||
num = random.randint(1, 12)
|
||||
num = random.randint(0, 12)
|
||||
status = ""
|
||||
method = "normal"
|
||||
|
||||
if num == 0:
|
||||
Ants.merge()
|
||||
return
|
||||
|
||||
if num == 1:
|
||||
ant.triumph += 1
|
||||
method = "triumph"
|
||||
|
@ -191,8 +195,6 @@ class Game:
|
|||
elif num == 8:
|
||||
status = Utils.random_country([])
|
||||
method = "travel"
|
||||
elif num == 9:
|
||||
Ants.merge()
|
||||
else:
|
||||
status = Utils.rand_sentence.sentence()
|
||||
|
||||
|
|
Loading…
Reference in New Issue