Graphwar

Graphwar is an artillery game in which you must hit your enemies using mathematical functions. The trajectory of your shot is determined by the function you wrote, and your goal is to avoid the obstacles and your teammates and hit your enemies. The game takes place in a Cartesian Plane.

It’s an applet and I have a website for it: www.graphwar.com

Up to 10 players can play online and it is also possible to play against a computer, but be careful, the computer is really good so try to play against very low levels (around 10) in the beginning.

There is a tutorial and I recommend reading it to understand how to play: http://www.graphwar.com/tutorial2.html

The code is open source and released under the GPL and is available on the website.

Cheers

My math teacher will love this :stuck_out_tongue:

Nice polished game. If you want add feature, add laplace version ;D Can I add computer player as enemy?

I remember 2 years ago I did try to create an app to solve normal equation to differential but not success (didn’t know how to parse).

This is awesome! I played this yesterday with my host-dad. We loved it!
Afterwards, we brushed up on our math.

Can I suggest you add a test-chamber, or something with/without obstacles, so yuo can try out things?
Maybe a CPU to play against?

I love it!

Played it against the computer and it was really funny. Nice idea.

Perhaps you can add some better graphics but I love the gameplay. =)

Really great idea!

You should enter this in the STEM comp: http://www.java-gaming.org/topics/national-stem-video-game-challenge/25197/view.html

I noticed You have source available, so I’ll take a look later on

BUT …

The most I’m interested of is the part that interprets the math function. Is this done by a lib or did You write something Yourself ?
What functions does it support ? etc…

I have an old old utility program, that visualizes some functions, but sofar the functions are hardcoded. I’d love to rewrite it so I could just dynamically input the equation.

I wrote it all myself, the code you would be interested is in PolishNotationFunction.java . It is mostly not specific to the game and would probably be easy to use on your own code with minimal modifications. The functions supported are:

sqrt()
log()
ln()
abs()
sin()
cos()
tan()
exp()

and the operators are: + - / * ^

Adding new functions would also be simple, I had actually a few more functions implemented but decided to remove from the game, like hyperbolic sines. Adding new operators would be much more complex.

^ Sweet! ;D

Very nice!

Now I just need time to take a look at it :confused: I wonder if there is a open source project for that too …

That sounds really nice, perfect competition for this game, unfortunately I am not a US citizen.