Last active
May 3, 2019 21:29
-
-
Save localhostdotdev/fbff0e91d1b2d66bfd6dadfe84e01ccb to your computer and use it in GitHub Desktop.
Revisions
-
localhostdotdev revised this gist
May 3, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ - there is a fixed width/height rectangle board - players are circles - every player start at size 10 let's say - when somebody goes off the board (player B) the last player (A) who touched player B gets half of its "weight" added - perimeter is `pi * r**2` - so the new perimeter is `(pi * rA**2) + (pi * rB**2)/2` - new radius is `pi * r**2 = (pi * rA**2) + (pi * rB**2)/2` -
localhostdotdev revised this gist
May 3, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,4 +13,4 @@ artist's impression :)  -
localhostdotdev revised this gist
May 3, 2019 . 1 changed file with 9 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,15 @@ - players are circles - every player start at size 10 let's say - when somebody goes off the board (player A) the last player (A) who touched player A gets half of its "weight" added - perimeter is `pi * r**2` - so the new perimeter is `(pi * rA**2) + (pi * rB**2)/2` - new radius is `pi * r**2 = (pi * rA**2) + (pi * rB**2)/2` - `r = sqrt(((pi * rA**2) + (pi * rB**2)/2)/2)` - acceleration is proportional to weight (so the larger the slower) - when touching another player forces are distributed by weight (e.g. small player can't push large player much) - they are bots that can easily be killed - anybody can join/leave anytime artist's impression :)  -
localhostdotdev created this gist
May 3, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ - there is a fixed width/height rectangle board - players are circles - every player start at size 10 let's say - when somebody goes off the board (player A) the last player (A) who touched player A gets half of its "weight" added - perimeter is pi * r**2 - so the new perimeter is (pi * rA**2) + (pi * rB**2)/2 - new radius is pi * r**2 = (pi * rA**2) + (pi * rB**2)/2 - r = sqrt(((pi * rA**2) + (pi * rB**2)/2)/2) - acceleration is proportional to weight (so the larger the slower) - when touching another player forces are distributed by weight (e.g. small player can't push large player much) - they are bots that can easily be killed - anybody can join/leave anytime