Created
July 26, 2014 05:24
-
-
Save shotarok/aa5ab16788d66205c786 to your computer and use it in GitHub Desktop.
RandomWalkAI
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 characters
LDC 8 ; seed number | |
LDF 4 ; step function | |
CONS | |
RTN | |
LD 0 0 ; load current AI state | |
LDC 1664525 ; A for 19 | |
LDC 69069 ; B for 19 | |
LDC 10000003; M for 19 | |
LDF 19 | |
AP 4 | |
LDF 12 | |
TAP 1 | |
LD 0 0 | |
LD 0 0 | |
LDC 4 | |
LDF 28 | |
AP 2 | |
CONS | |
RTN | |
LD 0 0 ; load now from env | |
LD 0 1 ; load A from env | |
MUL | |
LD 0 2 ; load B from env | |
ADD | |
LD 0 3 ; load M from env | |
LDF 28 | |
AP 2 | |
RTN | |
LD 0 0 ; 28 function | |
LD 0 0 | |
LD 0 1 | |
DIV | |
LD 0 1 | |
MUL | |
SUB | |
RTN |
800点くらい
seed : 8
A : 1664525
B : 69081
M : 10000003
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
labeled version.