Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add seed to ROSE #467

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

add seed to ROSE #467

wants to merge 13 commits into from

Conversation

ArielP123
Copy link

@ArielP123 ArielP123 commented Aug 9, 2023

can insert -s seed when opening the server tp set the seed of the server

ArielP123 and others added 3 commits August 9, 2023 13:22
added argument to server that contain seed.
if seed is "" generate random seed
added seed reset in function start in game class.
added the seed argument
added libary random
change truck_seed in config according to seed value
מקודם לא השאיר את הבחירה הרדונמלית אלא שם סיד רנדומלי קבוע בפתיחת בסרבר
עכשיו הוא יבחר סיד חדש בכל הרצה אם סיד רנדומלי
@ArielP123 ArielP123 changed the title add random seed to server add seeds to ROSE Aug 9, 2023
ArielP123 and others added 2 commits August 9, 2023 17:41
added log in the start of every run
client seed in seed.txt
added a seed var for the game class
added an element for displaying the seed
@iholder101
Copy link

Great job! 😉
Can't wait until this is ready to review 😄

ArielP123 and others added 8 commits August 10, 2023 09:20
log now print seed at the start of a run
at the start of the server the seed is no longer "" if the -s is diffult
truck_seed is now actual track seed weather random or not
base seed is the base value from the server activation
fix
fixed mistake in client/game
added the seed to state dict and used it in js to show it when running
the game
changed the html element of seed to h1 instead of button, and changed
the css of that element by the id
seed from client didnt work so we removed it
changed where the seed is saved
@ArielP123 ArielP123 changed the title add seeds to ROSE add seed to ROSE Aug 11, 2023
@ArielP123 ArielP123 marked this pull request as ready for review August 11, 2023 08:56
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.

None yet

4 participants