Skip to content

start implenting map division#5

Open
adfaure wants to merge 1 commit into
njaros:mainfrom
adfaure:start_implem_map_pos
Open

start implenting map division#5
adfaure wants to merge 1 commit into
njaros:mainfrom
adfaure:start_implem_map_pos

Conversation

@adfaure

@adfaure adfaure commented Mar 29, 2026

Copy link
Copy Markdown

not finished yet:

  • I need to increment the cardinal and recompute the proper shift in end_to_state.

Comment thread qlearning/src/lib.rs
})
};

acc + (map_pos + vision) * pow(8, idx)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ca c'est pas bon .

@njaros

njaros commented Mar 30, 2026

Copy link
Copy Markdown
Owner

I will firstly implement a possibility to give to the StateInterpretor a env_to_state function in the instantiation
eg:

pub fn my_env_to_state(env: &Vec<Vec<Tile>>): -> usize { ... }
let card: usize = 16486;
let state_interpretor = StateInterpretor::new(my_env_to_state, card)

@njaros

njaros commented Mar 30, 2026

Copy link
Copy Markdown
Owner

You can rebase the main, then patch your work on a new struct implementing the ETS trait

@njaros

njaros commented Apr 6, 2026

Copy link
Copy Markdown
Owner

The path of algorithms is now at qlearning/src/state/ets_lib.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants