create account

How to Draw a Chessboard in LOGO? by turtlegraphics

View this thread on: hive.blogpeakd.comecency.com
· @turtlegraphics ·
$7.67
How to Draw a Chessboard in LOGO?
@turtlegraphics aims to provide a set of simple-to-follow-and-fun-to-learn examples for [Logo Programming](https://steakovercooked.com/Software.Logo), which is known as Turtle Graphics for both parents and kids!.

## Logo Programming Source
```
TO FK :B
  HT # hide the turtle
  IF :B>15 [STOP]
  REPEAT 4 [FD :B RT 90]
  FK :B+1 # draw a bigger square to fill
END

TO QP :Y
  IF :Y>4 [STOP]
  REPEAT 4 [FK 15 FD 15 FK 1 FD 15]
  RT 90 FD 30 RT 90
  REPEAT 4 [FK 15 FD 15 FK 1 FD 15]
  RT 180
  QP :Y+1
END

QP 1
```

Procedure `FK` draws a solid square by recursively drawing a smaller square in it.  The Chessboard is then drawn by recursively drawing interleaving squares.

## Screenshot
![image.png](https://ipfs.busy.org/ipfs/QmPgq5AmwpxZCbxgb3tYy8fWk3oPYUSrPSVgiGNLNH1vu2)

## Logo Software
https://chrome.google.com/webstore/detail/logo-turtle/dcoeaobaokbccdcnadncifmconllpihp

## If you like this idea and update...
@turtlegraphics and the [LogoTurtle](https://chrome.google.com/webstore/detail/logo-turtle/dcoeaobaokbccdcnadncifmconllpihp) is maintained by @justyy 

Support him and his work as a [witness](https://steemit.com/witness-category/@justyy/justyy-just-another-witness) by

1. voting [him](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy) here, or
2. voting [him](https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1) as a proxy

Some of his contributions: **[SteemIt Tools, Bots, APIs and Tutorial](https://helloacm.com/tools/steemit/)** Thank you!
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorturtlegraphics
permlinkhow-to-draw-a-chessboard-in-logo
categorybusy
json_metadata{"community":"busy","app":"busy/2.4.0","format":"markdown","users":["turtlegraphics","justyy"],"links":["/@turtlegraphics","https://steakovercooked.com/Software.Logo","https://chrome.google.com/webstore/detail/logo-turtle/dcoeaobaokbccdcnadncifmconllpihp","/@turtlegraphics","https://chrome.google.com/webstore/detail/logo-turtle/dcoeaobaokbccdcnadncifmconllpihp","/@justyy","https://steemit.com/witness-category/@justyy/justyy-just-another-witness","https://steemconnect.com/sign/account_witness_vote?approve=1&witness=justyy","https://v2.steemconnect.com/sign/account-witness-proxy?proxy=justyy&approve=1","https://helloacm.com/tools/steemit/"],"tags":["busy","programming","tutorial","turtle-graphics","graphics"]}
created2018-05-22 19:44:48
last_update2018-05-22 19:44:48
depth0
children2
last_payout2018-05-29 19:44:48
cashout_time1969-12-31 23:59:59
total_payout_value6.573 HBD
curator_payout_value1.092 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,522
author_reputation505,124,969,261
root_title"How to Draw a Chessboard in LOGO?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id57,134,754
net_rshares1,904,272,099,912
author_curate_reward""
vote details (50)
@rafaelaquino ·
Me gusta mucho el ajedrez y un entusiasta de la programación. Se conjugan muy bien. Ahora estoy aprendiendo Pyton en un futuro haré proyectos de ajedrez. Saludos @turtlegraphics
properties (22)
authorrafaelaquino
permlinkre-turtlegraphics-how-to-draw-a-chessboard-in-logo-20180529t170520467z
categorybusy
json_metadata{"tags":["busy"],"users":["turtlegraphics"],"app":"steemit/0.1"}
created2018-05-29 17:05:21
last_update2018-05-29 17:05:21
depth1
children1
last_payout2018-06-05 17:05:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length177
author_reputation111,147,456,819,046
root_title"How to Draw a Chessboard in LOGO?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,307,006
net_rshares0
@justyy ·
$0.04
Good luck and keep learning!
👍  , , , , ,
properties (23)
authorjustyy
permlinkre-rafaelaquino-re-turtlegraphics-how-to-draw-a-chessboard-in-logo-20180625t233325598z
categorybusy
json_metadata{"tags":["busy"],"app":"steemit/0.1"}
created2018-06-25 23:33:27
last_update2018-06-25 23:33:27
depth2
children0
last_payout2018-07-02 23:33:27
cashout_time1969-12-31 23:59:59
total_payout_value0.035 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length28
author_reputation280,616,224,641,976
root_title"How to Draw a Chessboard in LOGO?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,264,933
net_rshares14,873,060,275
author_curate_reward""
vote details (6)