Thursday, December 22, 2011

Nearly making progress:

Here's another output:

*****************
Isaac Rivera did not purchase lemonade:
Reason: I'm not thirsty
*****************
Kyle Campbell purchased lemonade.
Satisfaction: 75.72478777137633
Reaction: :D
*****************
Aidan Taylor did not purchase lemonade:
Reason: Too pricey!
*****************

Test 00XX:

Name: Jenna Butler
Sex: Female
Social Class: upper
$$$ in Wallet: 1.5
Satisfaction: 50.0
Flavor: sweet
[Monday, Tuesday, Wednesday, Friday, Saturday]
Jenna Butler purchased lemonade.
Drinking...
Satisfaction: 75.72478777137633
Reaction: :D
------------------------------------------------
Recipe Criticism: Perfect
Recipe Grade: 3
Recipe x: -0.429
Recipe Success: 0.9999979980015041
Recipe Flavor: sweet
------------------------------------------------

Wednesday, December 21, 2011

Java File Save and File Load: Objects

A Beginning Programmer's Guide to Java: Java File Save and File Load: Objects

Revert

I changed the layout again. I think this one will last much longer. Like it? Also, I have a treat for you if you go to ez-squeeze.blogspot.com/. I decided I had some unfinished business so I'm working on a "revolutionary" bugfix. Enjoy one of the few tests I bothered to try. For some reason I took a liking to a lot of coding and a little making sure the code works. But it does!

Test Data 0003:

The writing and testing of these new classes is going great. Here's a sample output that deals with the possible methods. Consider it proof of concept.
(Today is monday, price = $0.70)
-------------------------------------------
Name: Gabriella Hill
Sex: Female
Social Class: lower
$$$ in Wallet: 0.6
Satisfaction: 0.5
[Monday, Tuesday]
Gabriella Hill did not purchase lemonade:
Reason: Too pricey!
-------------------------------------------
Name: Megan West
Sex: Female
Social Class: lower
$$$ in Wallet: 0.6
Satisfaction: 0.5
[Tuesday, Thursday, Friday, Saturday]
Megan West did not visit today.
-------------------------------------------
Name: Rachel Harris
Sex: Female
Social Class: middle
$$$ in Wallet: 1.0
Satisfaction: 0.5
[Monday, Thursday, Saturday]
Rachel Harris purchased lemonade.
-------------------------------------------

Tuesday, December 20, 2011

Person()

I was letting my little brother play this game and wondered how he had over $10,000 in only a couple days. Turns out my massive probability formula had a huge bug in the pricing portion of it. I am working on a fix right now (as well as multitasking with finals, ffocal.com, Christmas needs, and personal entertainment needs), but this shouldn't flip the whole project upside-down too much. I decided, why not make this game a little more about maintaining regular customers. So that the same ~200 people will always be walking past your lemonade stand. Perhaps some only walk by on certain days. I asked myself, "Self... what is the best way to do this?" And of course I told myself that a Person class is just what I need. Using a Person object, I can use an array of Persons and each Person can have a name, satisfaction level, amount of money in his/her wallet, a gender, preference for recipe,  schedule, and patience level. Not only does this sound like an amazing idea, but it might actually work! Also, when I eventually get the updates working, it will allow upgrades to work within the people themselves by making people more likely to buy internally (for example, "rewards card" "higher patience", "salary bonus"). Also, it will make it easier when I finally convert it to 2d graphics, or if I'm feeling especially self-confident, 3d graphics. We'll see when you actually get it. Happy Holidays!

Sunday, December 11, 2011

New to Java Filter

        It's been awhile since I've last blogged and so I thought I would post what's new. As you probably saw already, I updated Java Filter to Google's dynamic views. I believe this one is the sidebar option, which seems to fit best because I tend to not post many pictures. It looks a little empty right now, but I'll try and see if I can fix that.

        EZ Squeeze Empire was a great idea at the time, and I intend to finish the last update and try to make it with a 2d library and more enjoyable to play. However, I'm currently unable to work on it at this time and will continue later on.
My resources are currently going to a much larger project, and I will shamelessly promote it now: ffocal.com

        I cannot take credit for the idea nor the work, but I can say that I am trying my best to play a part in some of the underlying functions that are necessary for it to work. I'm new to the Ruby programming language, and this has taught me a lot about it. Luckily it has a lot of similarities to Java and learning Java has helped me learn Ruby.