Saturday, June 16, 2012

Win Highlighting

win highlighting
Almost  forgot this easy to implement feature.
Now it highlights the win.

Download 

By the way: you must have the media folder and the .jar next to each other for the .jar to run. If you want to customize the appearance, feel free to edit images. However, pay attention to where lines are at, and keep the sizes the same. Also, don't forget transparencies.

Wednesday, June 13, 2012

Upcoming update

[update]

This update is coming around really slow because I haven't had much time to actually work on it. Lots of new code HAS been introduced, but not nearly enough for a functional game yet. Pretty soon I'll be going back to school so that could go either way. Maybe I'll find some extra help, but currently all graphics, logic, design, etc. are all being produced by me and it's a lot to do.

[original]

It has been awhile since 2.0b came out and I think it's time for an update.  As you recall 2.0b featured "people" in order to make it more realistic but the output was nearly unreadable because there was so much and the box was so small. However, that version prepared the way very well for the next version.  I will be rewriting a lot of it. This time all code will be self created, no GUI editor. That helps because netbeans was doing some funky stuff where I wasn't able to change the design without breaking the program.

New Features to expect:
  • multiple screens using a cardlayout.
  • Iconic labels displayed at all times to show important numbers. 
  • A graphic animation to display customer reactions. 
  • Lists of items to buy / shopping cart in order to make purchases faster. 
  • A graphic stats page with table, charts, and graphs.

Currently,  there are about 400 lines typed from starting from scratch but there is much more to be done and I am seeking reliable help. Multiple screens and the basic layout of objects is done. Each screen still needs work. There is a lot of artwork to make. With work at my paying job everyday, I anticipate being finished on my own in a month or two. We'll see.



Monday, June 11, 2012

Artificial Intelligence

AI is complete with three settings to choose from.

Download 

Rewrote the win checking method completely (down to 6 lines instead of the previous 80) by making an array of the win possibilities. That also set it up to make the AI much easier to create. I used the heuristic scoring method.

This will most likely be the last release.
I might create app and applet forms but don't count on it.

Contact me if you'd like to see the source.

Saturday, June 9, 2012

3D Tic Tac Toe Update

  • Added Sidebar Pane for options
  • Made it easier to implement AI in future
  • Added win counter
  • Added New Game Button to reset at any time
  • Locked size of window so things don't look funny
  • changed graphics a little to make perspective more obvious 

Download Release

Wednesday, June 6, 2012

3D Tic Tac Toe

What started as an assignment nearly two years ago is finally taking shape today. The assignment was to create a 3D tic tac toe game in Java in the sense that it has multiple planes. Currently features a responsive gameplay for two people and an attractive interface thanks to Paint and GIMP. All graphics and code were created by myself. The code comes down to about 300 lines and makes use of loops and patterns in order to condense it so much. I deleted over 200 lines of code from previously.

Before recently, this game didn't function correctly because even though the win checking method was correct, I did not break out of the loops so the only win that would count was the very last one that it tested for. There were no attractive images and it was very slow. Everything was drawn with the standard AWT Graphics "draw" methods.

This game does NOT have an AI yet. I hope to either make this in Java 3D or make the perspective more obvious. Other features would include a win counter.
Currently the game is only a desktop application. I am considering converting it to an applet. Additionally I want to get started developing for the android platform so this may be an app someday.

Download

Thursday, April 12, 2012

Git

I finally set up the project with version control using git, previously I was copying and that was just a mess. That also means anyone can finally access all of my code and it's now in the right directories. Also I should be able to make major changes without losing important stuff.
https://code.google.com/p/ez-squeeze-empire/

Monday, February 20, 2012

Graphics Version

I want to create a graphics version, and I am absolutely sure that would be much more enjoyable to play. I've been thinking for some time about which library and engines to use, but I haven't been able to make a decision yet. When I start making progress then I'll be sure to release some information. If you find any bugs or have any suggestions -besides about graphics- then please post them either here or as an issue on my google code page (which I have linked to in the sidebar). Just a heads up: I recently received a subdomain from heliohost.org so I moved all my blogs to that domain, however you may still reach this site from the old url ( ez-squeeze.blogspot.com ).

Thursday, February 2, 2012

PHP

I tried my luck at PHP today. The problem was to be able to create a form and have it post to a blog. Thus allowing any viewer to post to that blog. So the concept was similar to that of mlib, fml, etc. But how can someone do that for free? Or without designing a whole website in ruby on rails? Simpler than I thought.
Here's what I did:
Create an html form:
 <html>
<body>
<form method="post" action="mailer.php">
<p>Title:<input type="text" id="title" name="title" size="19"></p>
<p>Message:</p>
<textarea rows="9" name="message" cols="30" id="message"</textarea><br>
<input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset">
</form></body></html>
Which then links to a PHP file that handles it:

 <?php
$to = "to_email@site.com";
$subject = $_POST['title'];
$message = $_POST['message'];
echo "submitting... \n";
$headers = 'From: default <from@email.com>' . "\r\n";
mail($to, $subject, $message, $headers) or die("failure");
echo "done\n";
echo "redirecting in 5 seconds, otherwise click";
sleep(5);
echo "<a href=\"http://mlipro.blogspot.com\">here</a>\n";
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=http://mlipro.blogspot.com">';
?>

For the TO address, change your blog mobile/email settings to accept posts from a "secret" email, and use that address.  
Next, upload both files to the same directory on a PHP enabled server, and link to the form on your blog.
The website: mlipro.blogspot.com

Sunday, January 22, 2012

Update!

Version 2.0b is here; I haven't completely tested it but it uses the new object-oriented system. download
The jars now have the complete library files necessary so it is the only file needed (besides java on your computer of course)