Lurker News
I made this game to teach my daughter how buffer overflows work. I want her to look at programs as things she can change, and make them do whatever she wants.

Building your exploit in memory and jumping to it feels so cool. I hope this game teaches kids and programmers (who seem to have forgotten what computers actually are) that its quite fun to mess with programs. We used to have that excitement few years ago, just break into softice and change a branch into a nop and ignore the serial number check, or go to a different game level because this one is too annoying.
While working on the game I kept thinking what we have lost from 6502 to Apple Silicon, and the transition from 'personal computers' to 'you are completely not responsible for most the code running on your device', it made me a bit sad and happy in the same time, RISCV seems like a breath of fresh air, and many hackers will build many new things, new protocols, new networks, new programs. As PI4 cost increases, the esp32 cost is decreasing, we have transparent displays for 20$, good computers for 5$, cheap lora, and etc. Everything is more accessible than ever.
I played with a friend who saw completely different exploits than me, and I learned a lot just from few games, and because of the complexity of the game its often you enter into a position that you get surprised by your own actions :) So if you manage to find at least one friend who is not completely stunned by the assembler, I think you will have some good time.
A huge inspiration comes from phrack 49's 'Smashing The Stack For Fun And Profit' which has demystified the stack for me: http://phrack.org/issues/49/14.html#article
TLDR: computers are fun, and you can make them do things.
PS: In order to play with my friends I also built esp32 helper[1] that keeps track of the game state, and when I built it and wrote the code and everything I realized I could've just media queried the web version of the game.. but anyway, its way cooler to have a board game contraption.
[1]: https://punkx.org/overflow/esp32.html

Comments (54) 16 threads

Show all comments

Showing thread 12 of 16

tankenmate1 reply#
Good game by the way!
throwaway712711 reply#
CoreWar is a great game!

But I am not sure its very similar, I got a lot of inspiration from the WarGames (1983) movie https://www.imdb.com/title/tt0086567/
The whole project started as an attempt just to teach assembler, and the game was actually zero choice game like Snakes And Ladders, you have 5 instructions per turn, but on certain places you have to roll a dice and follow the branch: https://punkx.org/overflow/build/snakes-and-ladders.pdf
But then after watching WarGames I thought I can make something where you can just write on top of your opponent's memory.
CoreWar has very different dynamics and I think anyone who has not tried it is missing out.
At some point I thought to actually make the game real-time, as in you can move as your opponent moves, (SMP instead of time sharing like it is now, where you get context switched out in 10 moves), but it was too chaotic. Maybe with the esp32 helper it can be done and be fun.

demondemidi1 reply#
What part of WarGames inspired you? The hacking basically involved war dialing and password research, no stack overflows! :)

... wait a second are you really punkx?

Continue this thread — 1 reply

demondemidi#
Because 90% of HN wasn't born until 16 years after the first release?

Core War got boring because there were known good bots that always won.
And, well, Iiiii'm surprised no one mentioned RobotWar which predated Core War, but wasn't as complex.
https://en.wikipedia.org/wiki/RobotWar
;-)

anta40#
CoreWar is definitely one of ideal programming games (since I like assembly coding). Not many games like it these days, unfortunately, perhaps the closest one is Zachtronics' TIS-100.
magicalhippo#
Reminds me of Tierra[1], the "virtual life" simulator.

Haven't read the history of Tierra but wouldn't surprise me if he was inspired by Core War when creating it.
[1]: https://tomray.me/pubs/doc/index.html