mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-13 00:49:54 +00:00
rulegen:: gen_rule
This commit is contained in:
parent
df5c36c2a6
commit
16cdaa5a00
@ -1061,6 +1061,8 @@ EX aid_t get_aid(twalker cw) {
|
|||||||
return {ide, gmod(cw.to_spin(0), cycle_size(ide))};
|
return {ide, gmod(cw.to_spin(0), cycle_size(ide))};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vector<int> gen_rule(twalker cwmain, int id);
|
||||||
|
|
||||||
void extend_analyzer(twalker cwmain, int z, twalker giver) {
|
void extend_analyzer(twalker cwmain, int z, twalker giver) {
|
||||||
ufind(giver);
|
ufind(giver);
|
||||||
ufind(cwmain);
|
ufind(cwmain);
|
||||||
@ -1069,7 +1071,9 @@ void extend_analyzer(twalker cwmain, int z, twalker giver) {
|
|||||||
vector<analyzer_state*> giver_states, main_states, sub_states;
|
vector<analyzer_state*> giver_states, main_states, sub_states;
|
||||||
|
|
||||||
id_at_spin(cwmain, main_sprawl, main_states);
|
id_at_spin(cwmain, main_sprawl, main_states);
|
||||||
|
|
||||||
id_at_spin((cwmain+z)+wstep, sub_sprawl, sub_states);
|
id_at_spin((cwmain+z)+wstep, sub_sprawl, sub_states);
|
||||||
|
|
||||||
id_at_spin((giver+z)+wstep, giver_sprawl, giver_states);
|
id_at_spin((giver+z)+wstep, giver_sprawl, giver_states);
|
||||||
|
|
||||||
int currently_at = 1+z;
|
int currently_at = 1+z;
|
||||||
|
Loading…
Reference in New Issue
Block a user