- 1
How make thing like "*" move randomly by c++
7 odpowiedzi
+ 7
I think he's talking about something like
while True:
for i in range(20):
os.system('cls' if sys.platform == 'Windows' else 'clear')
print(' ' * i + '*')
time.sleep(0.03)
for i in range(10):
os.system('cls' if sys.platform == 'Windows' else 'clear')
print('\n' * i + ' ' * 20 + '*')
time.sleep(0.03)
for i in range(20, -1, -1):
os.system('cls' if sys.platform == 'Windows' else 'clear')
print('\n' * 10 + ' ' * i + '*')
time.sleep(0.03)
for i in range(9, -1, -1):
os.system('cls' if sys.platform == 'Windows' else 'clear')
print('\n' * i + '*')
time.sleep(0.03)
but in C++, rather than Python.
+ 2
Are you referring to something like this:
https://stackoverflow.com/questions/15642731/make-random-movement-of-the-object
+ 1
Please explain like we were stupid.
- 1
I want to "*" move randomly inside the box
- 1
Understand me ؟!
- 1
https://code.sololearn.com/cWl9qFX2HVrO/?ref=app
i want "+" inside box move randomly