Skip to content

This c++ code simulates a horse doing random movements to see how many steps it takes on average to come back to the beginning

License

Notifications You must be signed in to change notification settings

tete17/infiniteSeriesProyect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

infiniteSeriesProyect

This c++ code simulates a horse doing random movements to see how many steps it takes on average to come back to the beginning

I create it on a Os machine but i think it sould work on any machine (Im not a program so I may be wrong).

If you are on mac is as simple as downloading all the files into a folder going to the folder in the Terminal and tipping:

g++ main.cpp horse.cpp -o run.exe
./run.exe

Ps: Have some fun with the printPosition function of the horse class, but be aware that maybe the sleep() function can give some trouble.

About

This c++ code simulates a horse doing random movements to see how many steps it takes on average to come back to the beginning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published