Magic the Gathering(5)

Done! Fully playable version of beta 1.01 is here. Code here.
Read the rest of this entry

Magic the Gathering(4)

The project is almost done, has over 4800 lines of code and is playable :) Jar file here. Code here.

Read the rest of this entry

Bricks 3 Bot

Recently, I have been suggested by someone to show to you a bot to play my game Bricks 3. So, here it is ;)
Read the rest of this entry

Magic the Gathering(3)

I have finished main functions of deck creator :) Jar file here. Code where always (i.e. here).



Read the rest of this entry

Magic the Gathering(2)

I really got into it… Few minutes ago I have counted the lines I have written and I was really surprised that there are over 2 thousands of them. Even though there is a huge mess and many separated parts of code…
Read the rest of this entry

Java Communicator(2)

As a further preparation for writing MTG, I have read some more tutorials about RMI and realised that it will not help me too much (am I wrong?). I have tested connecting multiple clients to the server using sockets by upgrading my chat to deal with more than one client. I have separated server to a different class and when one wants to set a server, the server starts in the other thread while a chat behaves like a normal client but connected to a localhost. I have updated links in my previous post here.

Java communicator

Did you know that it is possible to write a simple chat for two people in Java, including GUI in less than 120 lines? Well, I didn’t. Here is the code. Two hours of work :)
Read the rest of this entry

Magic the Gathering

I haven’t written anything for quite a long period of time… I have been spending four weeks on two astronomy camps as a lecturer :) When I get back I had a friend over for about a week and we had a great time observing a night sky on the beach and touring my home city.
Read the rest of this entry

GDC Project Euler: problem 83 – Jaroslaw Pawlak

  • Difficulty: intermediate

Read the rest of this entry

boolean in Java is 8-bit large! always…!

After doing some testing and looking for some information on the Internet, I have figured out that primitive type boolean in Java is always 8-bit large, even in the array…
Read the rest of this entry