02-17-2023, 12:10 PM
In order to talk about recursion, first you have to talk about recursion
10 PRINT "Hola!
"
20 GOTO 10
"20 GOTO 10
|
Recursion: 4 ways to get it working
|
|
02-17-2023, 12:10 PM
In order to talk about recursion, first you have to talk about recursion
10 PRINT "Hola!
"20 GOTO 10
@TempodiBasic "Chess Pattern" Looks good!
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
02-17-2023, 04:18 PM
(02-17-2023, 12:10 PM)Ikerkaz Wrote: In order to talk about recursion, first you have to talk about recursion Then you have to know when to quit!
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
02-17-2023, 06:35 PM
Here is a Checkerboard fresh from my brain and QB64 IDE:
Code: (Select All) _Title "Checkerboard by recursion" ' b+ 2023-02-17
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
02-17-2023, 08:58 PM
(This post was last modified: 02-17-2023, 09:02 PM by dcromley.
Edit Reason: note
)
Nice patterns. Nice checkerboard. Amazing what can be done in a few lines of code.
I like this -- having the program show what's going on with recursion: Code: (Select All) _Title "Recursion Demo" ' dcromley
___________________________________________________________________________________
I am mostly grateful for the people who came before me. Will the people after me be grateful for me?
02-18-2023, 10:53 AM
02-18-2023, 10:59 AM
here another simple example of recursion in tail for draw a circle
Code: (Select All) _Title "Circle by recursion demo" |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| plotting shapes not working | madscijr | 6 | 653 |
10-22-2025, 05:29 AM Last Post: SMcNeill |
|
| why isn't _FULLSCREEN working? | madscijr | 5 | 532 |
09-20-2025, 01:47 AM Last Post: SMcNeill |
|
| I'm working on an old MS-DOS thingy... | KlamPs | 2 | 518 |
08-25-2025, 09:43 AM Last Post: hsiangch_ong |
|
| blue circle isn't drawing and print isn't working? | madscijr | 12 | 2,346 |
09-21-2024, 06:13 PM Last Post: madscijr |
|
| Updating Clock at a different rate to program loop-example not working as expected? | dowster | 1 | 616 |
08-15-2024, 12:06 PM Last Post: luke |
|