Owltávio
Owltávio
CC#
Created by Owltávio on 6/4/2024 in #help
How to make a bet system in a Turtle race?
So I'm trying to make a bet system in a turtle race using Tasks, where each player before the race starts can bet on 1 of the turtles in the race, but I don't know how to implement it properly. is there an way that each player can select one of the turtles and win/lose money based on the results?
9 replies
CC#
Created by Owltávio on 6/1/2024 in #help
Trying to create objects using a loop, but don't know what i'm doing wrong?
so i'm trying to update my turtle race simulator using tasks, one of the changes is to be able to choose the number of turtles participating in the race using a loop, but I keep getting the compile error CS0120, could anyone explain what I'm doing wrong?
7 replies
CC#
Created by Owltávio on 4/26/2024 in #help
✅ Could anyone explain to me why, on the second time, the code is skipping the thread "animation"?
So i'm making a small turtle race for a college assignment, and while testing I discovered that after running the code for the first time, it jumpss from tt5.register into the winner's VictoryScreen and skiping the code that would represent the race. Could anyone explain what I did wrong to make that happened?
13 replies
CC#
Created by Owltávio on 4/22/2024 in #help
Trying to simulate a turtle race and getting my ass kicked...
So I have a assignment to make a 5 player turtle race, but I'm having a hard time trying to implement the turtle movement and the race itself, I have been trying to this for 2 days and I feel i'm getting nowhere... Could anyone explain ways that I could implement them into the code? The assignment has some criterias: - must use System.Threading and Thread - race must me 100m - turtle must have a random inicial velocity between 1 and 5 m/s - during the race, the turtle must randomly have its speed increased, decreased or completely stop(sleep) - if a draw happen, the turtle with the least time sleeping wins - and of course, no use of AI, and code can't be copied from the internet Also, I'm using GDB Online, because I'm in windowns 7 hell...
12 replies
CC#
Created by Owltávio on 4/21/2024 in #help
Could anyone tell me what i'm doing wrong here?
No description
18 replies