JavaScript
Some fun for the evening: ๐๐๐ฏ๐๐ซ๐ข๐๐ง ๐๐๐ฆ๐ฆ๐ข๐ง๐ ๐ฌ ๐๐ค๐
Yesterday I had some tokens left (#tokenAnxiety) in some subscriptions, so why not revive a classic from the 90s: Lemmings?
Of course, with ๐๐๐๐๐ซ๐ก๐จ๐ฌ๐ง and ๐๐ข๐ซ๐ง๐๐ฅ, ๐๐จ๐๐ซ๐ข๐ฌ๐๐ก for the menu and fitting folkloristic tunes. The remembered game mechanics are the same.
Give it a try (zero cost, no installation, all in the browser): ๐๐ช๐ต๐๐ถ๐ฃ -> ๐ฎ๐ข๐ณ๐ค๐ฆ๐ญ๐ฑ๐ฆ๐ต๐ณ๐ช๐ค๐ฌ -> ๐๐ข๐ท๐ข๐ณ๐ช๐ข๐ฏ๐๐ฆ๐ฎ๐ฎ๐ช๐ฏ๐จ๐ด
https://marcelpetrick.github.io/BavarianLemmings/
Also has a touchscreen mode! ๐๐ค๐
Video; (open as post)
๐๐ก๐ ๐๐ข๐ซ๐ฌ๐ญ ๐ ๐๐ฆ๐ ๐ฆ๐ฒ ๐ค๐ข๐๐ฌ ๐๐ฉ๐ฉ๐ซ๐จ๐ฏ๐๐
I like good turn-based offline games. Recently, the kids brought home one that I won’t name here because my GitHub Pagesโbacked browser game is a shameless copy.
If you want to play it (free and safe): https://marcelpetrick.github.io/recognizer/
๐ง๐ต๐ฒ ๐ฟ๐๐น๐ฒ๐ ๐๐ฎ๐ธ๐ฒ ๐๐ฒ๐ป ๐๐ฒ๐ฐ๐ผ๐ป๐ฑ๐ ๐๐ผ ๐ฒ๐ ๐ฝ๐น๐ฎ๐ถ๐ป: ๐๐ธ๐ฐ ๐ค๐ข๐ณ๐ฅ๐ด. ๐๐ช๐จ๐ฉ๐ต ๐ด๐บ๐ฎ๐ฃ๐ฐ๐ญ๐ด ๐ฆ๐ข๐ค๐ฉ. ๐๐น๐ข๐ค๐ต๐ญ๐บ ๐ฐ๐ฏ๐ฆ ๐ฎ๐ข๐ต๐ค๐ฉ. ๐๐ถ๐ป๐ฑ ๐๐ต๐ฒ ๐บ๐ฎ๐๐ฐ๐ต ๐ณ๐ฎ๐๐๐ฒ๐ฟ ๐๐ต๐ฎ๐ป ๐๐ผ๐๐ฟ ๐บ๐ฎ๐๐ฒ๐.
It is super simple, but pattern matching requires concentration, and you have to be quick. ๐๐’๐ ๐ด๐ฟ๐ฒ๐ฎ๐ ๐ณ๐๐ป ๐ฒ๐๐ฒ๐ป ๐ฎ๐ ๐ฎ ๐๐ถ๐ป๐ด๐น๐ฒ ๐ฝ๐น๐ฎ๐๐ฒ๐ฟ with a local high-score list.
Building it raised three useful questions:
* ๐๐ผ๐ ๐ฑ๐ผ ๐๐ผ๐ ๐ด๐๐ฎ๐ฟ๐ฎ๐ป๐๐ฒ๐ฒ that rule across all ๐,๐๐๐ possible card pairs?
* ๐๐ผ๐ ๐ฑ๐ผ ๐๐ผ๐ ๐๐๐ฟ๐ป a shared game into a good single-player challenge?
* ๐๐ผ๐ ๐บ๐๐ฐ๐ต ๐ถ๐ป๐ณ๐ฟ๐ฎ๐๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ does a small browser game actually need?
The mathematical part uses a finite projective plane. ๐ง๐ต๐ฒ ๐๐ฒ๐๐ ๐๐๐ถ๐๐ฒ ๐๐ฒ๐ฟ๐ถ๐ณ๐ถ๐ฒ๐ ๐ฒ๐๐ฒ๐ฟ๐ ๐ฝ๐ผ๐๐๐ถ๐ฏ๐น๐ฒ ๐ฐ๐ฎ๐ฟ๐ฑ ๐ฝ๐ฎ๐ถ๐ฟ.
The product stays deliberately small: 10, 20, or 50 cards, a timer, and local high scores. ๐๐ฐ ๐ข๐ค๐ค๐ฐ๐ถ๐ฏ๐ต๐ด. ๐๐ฐ ๐จ๐ญ๐ฐ๐ฃ๐ข๐ญ ๐ณ๐ข๐ฏ๐ฌ๐ช๐ฏ๐จ๐ด. ๐๐ฐ ๐ฃ๐ข๐ค๐ฌ๐ฆ๐ฏ๐ฅ.
๐ ๐๐ถ๐ฑ๐ฒ ๐ป๐ผ๐๐ฒ ๐ณ๐ผ๐ฟ ๐๐ต๐ผ๐๐ฒ ๐ถ๐ป๐๐ฒ๐ฟ๐ฒ๐๐๐ฒ๐ฑ ๐ถ๐ป ๐๐ผ๐ณ๐๐๐ฎ๐ฟ๐ฒ ๐ฑ๐ฒ๐น๐ถ๐๐ฒ๐ฟ๐
I also used the project as a compact, end-to-end SDLC example: written requirements, scope, and acceptance criteria; separated and testable domain logic; versioned storage with migration handling; unit, component, browser, mobile, and accessibility tests; formatting, linting, type checking, and build gates; locked dependencies with automated updates; and repeatable PWA deployment through GitHub Actions and GitHub Pages.
๐๐ ๐ฒ๐จ๐ฎ ๐ญ๐ก๐ข๐ง๐ค ๐ฒ๐จ๐ฎ ๐๐ซ๐ ๐ช๐ฎ๐ข๐๐ค๐๐ซ: ๐ฉ๐ฅ๐๐ฒ ๐๐ง๐ ๐ฉ๐จ๐ฌ๐ญ ๐ฒ๐จ๐ฎ๐ซ ๐ฌ๐๐จ๐ซ๐ ๐ค
Got myself a micro:bit :)
After gaining some experience with the Calliope mini I was eager to have look over the edge of the plate and found the Sino:bit with an even bigger matrix of 144 LED. BUT: there is still the humble predecessor, the BBC micro:bit. A very original and clever project to get ALL children at school started. At a price of around 17โฌ what can go wrong? Give ten children one for free and even if just one turns into a programmer/software-developer (or just gains a bit insight how their favorite electronic gadgets work), then it was worth but. But what do I say as german citizen. Hello Flugtaxi :’|
I plan to get my feet into the cold and muddy waters of robotics. Of course, assembling the :move mini with the bulldozer add-on will be nothing great, but I’ve craved to find out how to control a servo and how to put some life into the boring aspects of programming. Just kidding. But blinking LED and measuring values is nice, but … I want to build my own cat-feeder. Or at least something which moves and blinks to keep them a bit attracted.
And: the micro:bit and Calliope mini feature both Bluetooth-radios, so connecting them shouldn’t be a problem.
Another advantage: somehow the given libraries for the micro:bit are more advanced and diverse than the Calliope’s, could be due to the release in 2015 versus 2017. Also: micro:bit features microPython. C not ..
My first idea was to create a stress-test. Play a bit around with the buttons and the “run in background”-feature. Still not heating properly and fast enough.
Code is visible on my micro:bit-repository on github. Just like the one for the Calliope. Suggestions how to make the processing unit glow are heartily accepted ๐
Let us get coding. Somehow I like the enviroment with blocks and the possibility to switch to Javascript. Not my favorite dialect, but … sometimes you have to embrace what is given to you <3
20 min-project of today: creepy squirrel
Fatal error: Uncaught Error: Call to a member function id() on array in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', 'let ledpowerinv...') #3 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('let ledpowerinv...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(186): CrayonHighlighter->process() #5 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php(703): CrayonHighlighter->output(true, false) #6 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/class-wp-hook.php(286): CrayonWP::the_content('<p><a href="htt...') #7 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/plugin.php(203): WP_Hook->apply_filters('<p><a href="htt...', Array) #8 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/post-template.php(240): apply_filters('the_content', '<a href="http:/...') #9 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/themes/clean-black/loop.php(7): the_content('Read more...') #10 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/template.php(751): require('/users/marcelpe...') #11 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/template.php(708): load_template('/users/marcelpe...', false) #12 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/general-template.php(155): locate_template in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36



