• entries
  • comments
  • views

Moe progress update.

Sign in to follow this  


For whatever reason, the threat of financial troubles (or perhaps the frugality that it promotes) provides programming motivation. At work I'm picking up Java for a project and as a general alternative to C++. At first glance it seems to be less good than I expected. I expected C# with some nuances. While the language itself sort of fits into that regard, the ancillary stuff in the process of turning design doc into running software is not close to C# niceties. There's also the fact that C# stuff 'does what you expect' for the most part and it's nuances are a bit deeper (delegate behavior is a common one for me). Java's seem to be more shallow (string operator + does concatenation but == doesn't do value equality?!?)...

And Moe got hours of work this evening. It's nice to look back on my code and think that much of the stuff is particularly elegant rather than horrid. Wonder when that happened...

Anyways, added a test map renderer, which is still broken. It did turn up a few incomplete things. Added turn messages, added parser switching for client commands once they join the game, added a quit to the screen, changed the game to run in psuedo-fullscreen (window the size of the screen on top) by default, realized that network communication sent along create messages for new objects but did not link them up! (oops) so fixed that and added code to handle discovery, added a quit to the console, added an ascii tree dump for game objects (and linked into console).

Next small step is the test renderer, then summary screens, then extending game objects, then turn processing, project stuff; lots yet to do before it's even vaguely playable. At least you'll be able to chat freely...
Sign in to follow this  


Recommended Comments

Erm not sure what you mean by value equality but == does test to see if two things are equal in Java

for example

if(1 == 1)
System.out.println("the two equal signs DOES value equality or w.e lol");

Share this comment

Link to comment

public static void main(String[] args) {
String moocow = "moocow";
String moo = "moo";
String cow = "cow";
String mooandcow = moo + cow;

System.out.println("yay, equal.");



Share this comment

Link to comment
Thats because your comparing strings..

to compare strings you have to do

blah blah

but for numbers and all that, this works.
if(a == b)

Share this comment

Link to comment
Yes, hence my qualifier that having string operator + do what's expected whilst string operator == does not is, to be polite, inconsistent.

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now