Search found 2574 matches

by badidea
Jan 19, 2024 13:15
Forum: Sources, Examples, Tips and Tricks
Topic: Langton's ant
Replies: 27
Views: 1773

Re: Langton's ant

More interesting, I think, is a ant colony food finding simulation. Where ants search for food locations, find the way back to the nest with the food, mark a path to the food for others, optimize the path, switch to different location when the food runs out. Like here: https://onestepcode.com/ant-co...
by badidea
Jan 19, 2024 0:10
Forum: Sources, Examples, Tips and Tricks
Topic: Langton's ant
Replies: 27
Views: 1773

Re: Langton's ant

And the normal ant on a looped around map with some extra colors: 'define colors const as ulong C_BLACK = &hff000000 const as ulong C_YELLOW = &hffffff00 const as ulong C_RED = &hffff0000 const as ulong C_GREEN = &hff00ff00 const as ulong C_BLUE = &hff0000ff dim as ulong drawColo...
by badidea
Jan 18, 2024 23:58
Forum: Sources, Examples, Tips and Tricks
Topic: Langton's ant
Replies: 27
Views: 1773

Re: Langton's ant

I made an ant that takes 45 degree turns. Keeps doing seemingly random walks. 'define colors const as ulong C_BLACK = &hff000000 const as ulong C_YELLOW = &hffffff00 const as ulong C_RED = &hffff0000 const as ulong C_GREEN = &hff00ff00 const as ulong C_BLUE = &hff0000ff dim as ul...
by badidea
Jan 14, 2024 23:17
Forum: Sources, Examples, Tips and Tricks
Topic: Conway's Game of Life
Replies: 4
Views: 410

Re: Conway's Game of Life

neil wrote: Jan 14, 2024 10:27 @David Watson
I know BasicCoder2 wrote some code a while ago about the way an ant moves.
I am not sure if it's the same as Langton's ant.
This one? ants tripod gait
That ant does not make turns.
bluatigro tried Langtons Loop
I don't see any tries at Langton's ant in freebasic yet.
by badidea
Nov 30, 2023 21:26
Forum: Game Dev
Topic: The world needs more tetris
Replies: 6
Views: 919

Re: The world needs more tetris

neil wrote: Nov 30, 2023 6:06 Nice your puzzle games are addicting.
Yes, I noticed this myself as well. I think the the human mind is more sensitive to quick small rewards/accomplishments then to larger less frequent large awards.
by badidea
Nov 27, 2023 23:32
Forum: Game Dev
Topic: The world needs more tetris
Replies: 6
Views: 919

The world needs more tetris

A new variant in development, I call it: Tetrisame (from Tetris + SameGame) As you will see, the goal is not to make lines, but same color shapes >= 4 blocks. Floating 'leftovers' will drop afterwards. Github link: https://github.com/verybadidea/tetrisame Single file version: '* Initial date = 2023-...
by badidea
Nov 22, 2023 22:31
Forum: Sources, Examples, Tips and Tricks
Topic: Rounding numbers
Replies: 48
Views: 4713

Re: Rounding numbers

Now I would like to know which CRT functions 'Format' and 'Print Using' are based on. I looked up 'format', which is 'fb_StrFormat' which you can find in src/rtlib/str_format.c 'fb_StrFormat' calls 'fb_hStrFormat' which calls 'fb_hProcessMask' which is a near 1000 lines of code function. Good luck.
by badidea
Nov 13, 2023 22:50
Forum: General
Topic: slow to execute after compiling source code
Replies: 11
Views: 1152

Re: slow to execute after compiling source code

Just a wild guess: Virus-scanner sees a new executable with code that includes write to disc and analyses it first.
by badidea
Sep 06, 2023 18:35
Forum: Libraries & Headers
Topic: Library, Project, Example Code Archive
Replies: 7
Views: 2015

Re: Library, Project, Example Code Archive

Something like https://freebasic.net/wiki/CodeLibrary and https://freebasic.net/wiki/ExtLibTOC but up-to-date, with pictures, with complete projects, without dead links and available for a long time? That would be nice indeed.
by badidea
Aug 26, 2023 22:52
Forum: Game Dev
Topic: Game Jam 2023 (Spine2D Pro + Cash Prizes)
Replies: 3
Views: 1648

Re: Game Jam 2023 (Spine2D Pro + Cash Prizes)

Hi, how did last years 2022 Game Jam go? I cannot find the results on the website.
by badidea
Jun 20, 2023 22:09
Forum: DOS
Topic: [Solved] Xfont error in DOS
Replies: 10
Views: 2147

Re: [Solved] Xfont error in DOS

Although I made a copy on github with some some fixes, I don't knot much about the library. But I was wondering if BACKCOLOUR should be BACKCOLOR (without the U).
by badidea
Apr 27, 2023 13:23
Forum: Sources, Examples, Tips and Tricks
Topic: Colorful graphics
Replies: 3
Views: 1170

Re: Colorful graphics

A slightly modified version: DIM As Ulong w,h,colors,x W = 1280 H = 800 DIM As Ulong inc = +1 Screenres W,H,32 For x = 1 to w / 2 sleep 10,1 Circle ((w / 2 - x - 1),(H / 2 - 1)), x, rgb(Colors,Colors,0) Circle ((w / 2 + x - 1),(H / 2 - 1)), x, rgb(0,0,Colors) Circle ((w / 2 - 1),(H / 2 - x - 1)), x,...
by badidea
Apr 02, 2023 22:34
Forum: Beginners
Topic: simple cellar automaton
Replies: 3
Views: 1151

Re: simple cellar automaton

The make it a bit faster, you can remove the "select case inkey$ ... end select" from the inner loop. E.g. (wth some other minor changes): 'a cellular automaton (from Scientific American 1998) ' create rectangle on screen of pixels with random colors ' from 1 to numberOfColors using "...
by badidea
Mar 30, 2023 22:10
Forum: Hardware Interfaces / Communication
Topic: SetTime problem
Replies: 2
Views: 3587

Re: SetTime problem

I assume that you tried with superuser rights (sudo)?
Here (on Ubuntu) I have to disconnect/disable the network link to make it work, else it keeps syncing the time with an internet time server.
by badidea
Mar 26, 2023 23:23
Forum: Community Discussion
Topic: My dead links / images
Replies: 0
Views: 1249

My dead links / images

The website (https://nr100.home.xs4all.nl/badidea) that I have been using for the last 15 years or so is unfortunately gone (since December 2022). I used to put images there, embedded into my forum posts here. They are gone. If someone is looking for a certain image, I can probably still find it (or...