repo.or.cz
/
taruga.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Better docs, remove WIP Taruga interpreter code
[taruga.git]
/
examples
/
spiral.cpp
blob
7bd39e55979620063250a42842fbd63d50ac7f8c
1
#include
"include/taruga.hpp"
2
3
//! Draws a spiral. Do notice this'll probably take a while to finish.
4
5
6
int
main
()
7
{
8
taruga
::
Turtle turtle
;
9
10
int
size
=
1
;
11
while
(
size
<=
500
)
12
{
13
turtle
.
forward
(
size
++);
14
turtle
.
turn_right
(
91
);
15
}
16
17
turtle
.
act
();
18
19
return
0
;
20
}