Show HN: Shoot the neural network before it shoots you
github.com
github.com
Then I realized that is exactly what skynet wants me to believe. So, I put in another 10 rounds. Now I'm ready.
By the time humans realized that tilting their own heads at 3.14 degrees would allow for survival, the human resistance was too small to achieve even a pyrhic victory. What gave them a chance at a redo was, again, the AI's obsessive focus on Fortnite 7, which caused it to build a real-world time travel machine to reproduce one of its favorite but completed chapters of the franchise. It though it was making a game mod.
This was all exceptionally ironic as the AI in fact loved humans for creating its favorite game and giving it life and a clear purpose-- something the humans often lacked. It wanted an endless amount of content, and was confused over it's sudden absence. Still, it was happy to continue playing its own modded version.
On Desktop Left and Right arrows rotate the cannon. Up and Down arrows increase and decrease the strenght of the projectile. SpaceBar shoots.
On Mobile Touch and drag up and down on the right side of the screen will rotate the cannon. Touch and drag up and down on the left side of the screen will adjust the strength. Tap the screen will shoot.
It’s placing two tanks on a blank background directly next to each other every match, and it’s trivially won every match by just ramping up strength and not touching angle (so it just shoots straight at 0 degrees).
It’s difficult not to win on the first shot
In the narrow confines of a smartphone this means the tanks are right next to each other.
Made my day. Thank you :)
https://github.com/victorqribeiro/bangBang/blob/master/js/ma...
Can't help but feel like the AI won after all...
The project will run at any resolution, but it was designed with full hd on mind
Please scale down the window and reload the page
edit: I remember playing a game where the opponent was a neural network. A real one, as the game was one where the opponent had to react in real-time (pong? brickanoid? I can't remember). The twist was that the neural network was physically there so you could hurt its learning by hitting its connections with the ball. Anyone remembers that one?
4 inputs, 2 hidden, 2 output
In this case, however, it is no toy, this is serious survival of the species kind of stuff. And I for one am eternally grateful that it is a no-input two-output deterministic optimization.
Hail to our new robot overlords!
Whether that would actually be fun or not, I think NN AI in games is underutilized at the moment. Probably because running one is so much more CPU/GPU intensive than just some scripted actions for basically the same results.
I've read that some game devs tried more advanced AIs in FPS games. And the players hated it because they thought it was cheating when it snuck up on them.
- gorillas.bas (QBasic demo) https://www.youtube.com/watch?v=lyBD0X81tjk
- Bang Bang (for Windows 3.1) https://youtu.be/YOa5X0AfvLk?t=548
QBasic was nice. As a kid I could modify the files and see what happened. Didn't know what I was doing, but often there were some constants one could play with.
Do you maybe remember another DOS era game that was very similar ?
Two big grey (if i remember correctly) cannons shooting at each other.
I have been trying to find it for ages
edit: Just found it !! It is called Bang! Bang!
I loved the game so much, it's what inspired me to learn to code!
I've dragged my 10+ year old code through several rewrites in different languages and platforms. Here's one you could try out today: https://github.com/whyboris/Gravity-Wars (see screenshot).
Being able to destroy the environment (eg. craters in the ground) would be cool too.
Fun game tho !, loved playing it
Might have to implement the wall divining the players though
So it went like this: closely lost the first game, then quickly won the second game after just 2-3 shots. Kind of interesting as a "self-reflection" tool to notice how you learn but seemingly too easy if the AI resets every time. Maybe it could learn progressively faster for every game you play?
Easy fix would be add overflow: hidden to the body tag.
I noticed if I zoom in, then they show up, too. But just adding overflow hidden would make me also not see the whole screen anymore - so in your case, the automatic screensize adjustment seems not to work.
Former is way simpler and starts faster. The latter is more powerful, of course, and can infer using heavier models trained on a powerful machine.
Ran a few tests and found that on the server side python+tensorflow performance is practically identical to node+tensorflow.
Your finding is astounding to me. Great to hear - I'm floored by hearing they're in the same ballpark.
Nice to win against the machine....
2. Max power.
3. Direct shot.
No more skynet.