Almost there, folks! Today we get to the point where the functionality only needs to be debugged, and thus is pretty much done! So next week is debugging, and if we have time, depending on how riddled with errors the code is, get to the GUI.
Let's stop talking about getting to tat point now, and actually get there!
Friday, 6 January 2012
Thursday, 5 January 2012
Java: Texas Hold Em (34)
Ah, for those unaware, debugging is the process of finding/identifying errors (bugs) and removing them from some program. Doing this is mostly uninteresting, and in the case of the ConsoleClient, just involves me running the entire class and seeing what it does, then trying to find out why it does that.
I was going to document the debugging, but only after we were done with the class, since errors crop up in the form of methods we've not covered, and it'd get confusing :)
For now, though, lets get to finishing the ConsoleClient. Looking at the Client interface, there's 7 or so more methods to go! Here we go:
I was going to document the debugging, but only after we were done with the class, since errors crop up in the form of methods we've not covered, and it'd get confusing :)
For now, though, lets get to finishing the ConsoleClient. Looking at the Client interface, there's 7 or so more methods to go! Here we go:
Wednesday, 4 January 2012
Java: Texas Hold Em (33) - The Console Client
Hullo again! I meant to make this post in advance to get up here so I could have today off, but then I didn't, so I'm stuck here :(
Today we start on our ConsoleClient, which should be the final piece to our functionality. Maybe, I honestly don't quite get either of the clients, so there will probably be a load of debugging to do. Probably some which I won't be able to do. But that's enough optimism, let's get down to the client!
Today we start on our ConsoleClient, which should be the final piece to our functionality. Maybe, I honestly don't quite get either of the clients, so there will probably be a load of debugging to do. Probably some which I won't be able to do. But that's enough optimism, let's get down to the client!
Tuesday, 3 January 2012
Java: The Map Interface
Hi again! I'll be going through the Map interface today in a little more detail, just so you know how it works. It's pretty cool. If you've done other programming, you might know this interface as a dictionary, which is what I likened it to before.
Monday, 2 January 2012
Java: Texas Hold Em (32)
Hullo! Finishing off the table class today so tomorrow we can go through a tutorial of the Map class. After that, we'll be messing with the ConsoleClient to complete our functionality, then put aside a few days to test it all out so we can be confident that we're set to move onto the GUI and so on and so forth!
Friday, 30 December 2011
Java: Texas Hold Em (31)
Okay, today I'll try leaving in the commentary to the code, leaving my posting text to stuff like this, that's not directly code related!
Today we'll be looking at the method that handles showdowns in the game, enjoy!
Today we'll be looking at the method that handles showdowns in the game, enjoy!
Thursday, 29 December 2011
Java: Texas Hold Em (30)
Okay, in the receding phase of my migraine, which means I can stick around longer, but I'm still not at full operating capacity! Still, I figure we can get through the huge method, which will actually take a little bit OVER the 2 screenshots I wanted to limit my posts to, but only by like, 2-3 lines.
The reason the method is so large is that it's responsible for the entire round of betting, so there's a big chunk of stuff and a switch statement to boot. Also, switch statements make use of "break;" so that inflates the length of the code a bit.
Here it is:
The reason the method is so large is that it's responsible for the entire round of betting, so there's a big chunk of stuff and a switch statement to boot. Also, switch statements make use of "break;" so that inflates the length of the code a bit.
Here it is:
Wednesday, 28 December 2011
Java: Texas Hold Em (29)
Well, got a migraine today, so sorry, folks, can't give you the big one I promised. Instead, I'll cover it whenever this blasted thing is gone, and cover the method that returns a player's allowed actions tonight.
Here it is, short as possible:
Here it is, short as possible:
Tuesday, 27 December 2011
Java: Texas Hold Em (28)
Yar, hope everyone had themselves a good weekend, I sure did! If I recall right, we left off at the table dealing out the community cards, which means today we'll be covering a method to reset the hand, and another to switch players for turn rotation and such. Let's get to it, no more partying for you!
Friday, 23 December 2011
Humbug!
Hey, so, a friend I've not seen in a long time just made it into town! I'll be skipping today's posts, and Monday's post in the interest of having a pretend social life for half a week!
Maybe I should have packaged this as a long weekend for the purposes of Christmas? Yeah, let's do that! See you guys on Tuesday, and Merry fuckin' Christmas to all!
Maybe I should have packaged this as a long weekend for the purposes of Christmas? Yeah, let's do that! See you guys on Tuesday, and Merry fuckin' Christmas to all!
Subscribe to:
Posts (Atom)