Connect4 with Java AI

Connect 4 including AI

 Description

Everybody knows it, everybody loves it: Connect 4. Place your stones so that they connect in a row of 4 pieces diagonally, horizontally or vertically and win.

You hate “4-In-A-Row” – the Connect4 game that e.g. comes per default with ubuntu – because even on the easiest setting it always beats you? Download this game! Its AI makes thoughtful but not too hard moves, it will feel like playing against an actual human being – that’s just a little worse than you are ;) It is also possible to play against another human being. The second player uses right-click to place.

Java: Handling Files (Reading, Writing, Fetching Webpage)

This is a collections of Java methods that are needed all the time, but you forget the code for it anyways because in Java, sometimes things that should be simple one liners are quite blown up (well, if you eg do use the writer/reader classes instead of the streams to write/read a file it is not as bad). Logging/Writing to a File Reading a File Reading a remote file/a web page Logging/Writing to a File       /**

WordPress username leak

 WordPress author permalink displays username (instead of nickname) WordPress distinguishes between username and nickname (username for login, nickname for display). If you click on the author link below a post, you will be redirected to a page (permalink) that seems to be: example.com/author/username which is odd, as it really should be example.com/author/nickname Well, actually, it is neither username nor nickname but user_nicename from your WordPress user table (which seems to be set to the username by default).

Java Heatmap (Example Code)

Heatmap General Description Usage Java Heatmap Example Heatmaps Download Java Heatmap Example Implementation Heatmap General Description A heatmap is a visual representation of a list of points. This is handy in a lot of situations. If you want to quickly analyze a log you created of positions players died in a game, positions your users clicked on your website, etc. Basically anywhere where the log of points is generated from something visual.

Path finding using A Star Algorithm: Java Example

With the A Star search algorithm it is possible to find the shortest path from one point to another on a map (while respecting fields that may not be walkable or that may slow down the movement). If your goal is not to find the path to one concrete point but to find the closed point that fulfills some condition, you should use Dijkstra’s algorithm instead. I will not describe the A*-algorithm in depth on my page as it is already done quite well here: Description of A Star or you can go to the A Star Wikipedia for a short overview.

Apes throw bananas

Apes throw Bananas – An addictive casual game

 Description

The player controls an ape. His goal is to hit an enemy ape with bananas.

I wrote this game mainly to get to know slick2d, so do not expect too much. Especially the enemy ai is weak and graphics are unfinished.

I think it is fun to play anyways, so who knows, you might like it as well.

What you get:

  • 9 level
  • Playable with mouse OR keyboard
  • You get to throw bananas at apes!

Java Side Scroller Jump n Run Game (with Source Code)

The amazing Adventures of Stickman through the Galaxy – in a Bubble! Description of Java SideScroller Game System Requirements / Performance info General Info on Java Game and Source Code Download Side Scroller Game Screenshots of Game Thanks Description of Java SideScroller Game This is a Jump n Run Game / sidescroller game written in Java. In this game, the player jumps, rolls, swims and even flies through a lovely designed world.