Ok it's Christmas time again.
I had a good one. I received some computer software that I wanted. Campaign Cartographer. Yea gaming stuff and i got a new hinge for my C300. Who knew they break in half.
Well it happened. How I dealt with it? I called Acer and bought the part from ebay. When it arrives I'll be installing it and posting photos.
My blog for next year?? I will attempt to post at least 3 entries to all my blogs per month. I just want to be regular and keep it going. Wish me luck. Maybe it'll get my iLazy ass moving.
Monday, December 29, 2008
Sunday, November 9, 2008
I can use my PC with no pay software.
I've been meaning to write a piece on the software I want on every PC I use. I'm getting lazy in my old age and I find I have more then one PC for the stuff that I need to do in my life. I have one laptop for my photography/role playing and a personal battle wagon for just about everything add in the work laptop and we're talking about 3 machines I can find my self using.
The first thing I need to do is synchronize my list of favorites and edit it so that it's work safe. I have found my self surfing on all these machines at different time. The web just sucks with out your handy dandy list of favorites and remembering URLs only goes so far.
The first thing I need to do is synchronize my list of favorites and edit it so that it's work safe. I have found my self surfing on all these machines at different time. The web just sucks with out your handy dandy list of favorites and remembering URLs only goes so far.
- Notepad++ because basic notepad doesn't flow like I like to flow. I need the tabs because I go for idea to idea.I also like the language selections in there.
- Picasa this google program organizes my photos. Not standard on work packages but you can edit an image pretty quick and simply.
- ISORecorder some times you need to handle ISO and with in the OS is the best way.. handy little burning tool.
- InfraRecorder this OS alternative is handy and doesn't get steeped on when your service pack 2 dies.
- 7-zip I like this for more robust zipping.
- OpenOffice Sometimes I don't need word but I have to open word documents often.
I think I could live with those 6 things on every pc.. and my favorites.
Thursday, October 16, 2008
Correct Assumptions : More OOP With cards in games
I wrote the last post with out checking out what Micro Soft had to offer. I found that there is a card game starter kit. I downloaded it and began playing with it. I was shocked to see that what I was thinking would actually work for the handling of cards in a game.
The starter kit builds a blackjack game that you should be able to edit and expand. So i began poking around to see what was there that can be used and modded for my needs. I went to the Card Game Framework to see what was there. I found 3 classes (Card,Deck and Hand). These fit my assumptions with minor changes.
Card is built the way I assumed it would be. It encapsulates the values of the suit,faceValue, and isfaceup. This object is just for the play of this card in other collections. The values are set to private readonly fields or public get properties. That's actually good programing as it stops the programmer from attempting to change cards on the fly.
Deck unlike my deck has only one collection. It also has methods for shuffleing that collection.
Also it has a method for drawing a card. I think since black jack doesn't need a discard deck or to shuffle that deck back in those methods are missing. I can use this as an excellent start for my card based game. I can shuffle anything that looks like a deck. These can even be room tiles from games like house on hunted hill or other games with tiles.
Hand is a collection of cards and cantains a number of cards property. It's inherited by blackjack hand and hit has the rules for black jack in that. all this is wrapped by theanother class.
I know I'm on the write path to writing my game. I'm really excited by this and I can add the silverlight bits.
The starter kit builds a blackjack game that you should be able to edit and expand. So i began poking around to see what was there that can be used and modded for my needs. I went to the Card Game Framework to see what was there. I found 3 classes (Card,Deck and Hand). These fit my assumptions with minor changes.
Card is built the way I assumed it would be. It encapsulates the values of the suit,faceValue, and isfaceup. This object is just for the play of this card in other collections. The values are set to private readonly fields or public get properties. That's actually good programing as it stops the programmer from attempting to change cards on the fly.
Deck unlike my deck has only one collection. It also has methods for shuffleing that collection.
Also it has a method for drawing a card. I think since black jack doesn't need a discard deck or to shuffle that deck back in those methods are missing. I can use this as an excellent start for my card based game. I can shuffle anything that looks like a deck. These can even be room tiles from games like house on hunted hill or other games with tiles.
Hand is a collection of cards and cantains a number of cards property. It's inherited by blackjack hand and hit has the rules for black jack in that. all this is wrapped by theanother class.
I know I'm on the write path to writing my game. I'm really excited by this and I can add the silverlight bits.
Saturday, October 11, 2008
A deck of cards in OO Development.
I've been thinking about this for some time. I wanted to write a web based game that uses cards. Kind of think Monoploy or Poker or Solitare. My train of thinking is how do you treat cards.
A card is simple. It's just an object with some properties. In a poker deck a Jack of clubs has a graphic. You know the picture of the jack. It has a Value a J. Now in the deck you know there is only one Jack of Clubs. So my first problem is how do I track the cards that arent in the deck.
I simply started by thinking 2 Collections. A Deck Collection with all the cards and a discard stack. So if one card is pulled from the top of the deck that card has to be placed in to the discard stack. So with this bit of design i can pull a card off the top of a unshuffled deck and place it in a discard pile.
To shuffle I can create a random number generator. And then just delete from where it's pointed from the deck collection. This will then add on top of the discard pile. Now this allows us to pick the top card of a shuffled deck and place it ontop of a discard file.
Next I want to give the cards to players. Again with the 2 Collections one for the deck and one for the discard. The program needs to track where the card is. So all the player obects have collections for cards in there hand. Also a limiting INT to limit hand size. Cards are drawn with random number from the first collection and either placed in discard or hand of a player. then the player can be quiered for there hands.
Ok that's an over view of how to deal a poker hand. Then we can add testing and how to pull the cards and game play options like betting net. I'll post some code so I can test that.
A card is simple. It's just an object with some properties. In a poker deck a Jack of clubs has a graphic. You know the picture of the jack. It has a Value a J. Now in the deck you know there is only one Jack of Clubs. So my first problem is how do I track the cards that arent in the deck.
I simply started by thinking 2 Collections. A Deck Collection with all the cards and a discard stack. So if one card is pulled from the top of the deck that card has to be placed in to the discard stack. So with this bit of design i can pull a card off the top of a unshuffled deck and place it in a discard pile.
To shuffle I can create a random number generator. And then just delete from where it's pointed from the deck collection. This will then add on top of the discard pile. Now this allows us to pick the top card of a shuffled deck and place it ontop of a discard file.
Next I want to give the cards to players. Again with the 2 Collections one for the deck and one for the discard. The program needs to track where the card is. So all the player obects have collections for cards in there hand. Also a limiting INT to limit hand size. Cards are drawn with random number from the first collection and either placed in discard or hand of a player. then the player can be quiered for there hands.
Ok that's an over view of how to deal a poker hand. Then we can add testing and how to pull the cards and game play options like betting net. I'll post some code so I can test that.
Saturday, September 20, 2008
Part time Jobber
Ok I'm a part time jobber now. I'm doing coldfusion on the side. tonight I'm downloading the code and getting ready to start doing projects for them.
Saturday, August 9, 2008
I got my CodePlex and my Popfly.
Ok today I registered for Codeplex and I have my Popfly. So I'm all Microsoft moneypieced up and I'm going to break my nephew in right with Visual basic 2008.
Labels:
codeplex,
coding,
microsoft,
Open Source,
popfly
Thursday, July 31, 2008
Cool tools for version control.
I started using version control on my personal projects about a year ago now. I had a hard drive crash and I lost some project that I was working on. I cried, bought a new hard drive, reimaged and started again with the cadveat I'd do better.
So I started doing better my way. I loved subversion since I had to use it at Catalyst. It never messed up a project and it was nice and easy to use. I downloaded Tortiose and found a site to host it for free.
I thought My Version Control was a god send. I was able to tell my client he was important enough to warrent off site back up. I was able to give several other ppl working on the project with me access. they could read the wiki. Yea.. that was a move in the right direction.
At work I have a VSS system to do the source control and it's all nice inside the IDE. I never really liked it but I deal with it. and go and find who has the file locked and IMing them to get out of the file that I need. I remember the senior devs wanted a plugin into the IDE so they can "live in the IDE". I always joke about it not having a roof. Well I went to code camp (Generic name for Philly.net meeting). It was a hands on camp and dude had all kinds of amazing toys. I wanted his toys his Subversion was inside his VS his nunit test thing was inside his VS and I discovered Resharper.
The Anhk Project is that plug in. I added it tonight and I think it's really cool. I coded a bit on my project and it's sweet just what I need right there where I need it. I also added test driven.net and it works well to running unit tests with in vs.
So I started doing better my way. I loved subversion since I had to use it at Catalyst. It never messed up a project and it was nice and easy to use. I downloaded Tortiose and found a site to host it for free.
I thought My Version Control was a god send. I was able to tell my client he was important enough to warrent off site back up. I was able to give several other ppl working on the project with me access. they could read the wiki. Yea.. that was a move in the right direction.
At work I have a VSS system to do the source control and it's all nice inside the IDE. I never really liked it but I deal with it. and go and find who has the file locked and IMing them to get out of the file that I need. I remember the senior devs wanted a plugin into the IDE so they can "live in the IDE". I always joke about it not having a roof. Well I went to code camp (Generic name for Philly.net meeting). It was a hands on camp and dude had all kinds of amazing toys. I wanted his toys his Subversion was inside his VS his nunit test thing was inside his VS and I discovered Resharper.
The Anhk Project is that plug in. I added it tonight and I think it's really cool. I coded a bit on my project and it's sweet just what I need right there where I need it. I also added test driven.net and it works well to running unit tests with in vs.
Labels:
ASP,
ASP.NET,
C#.NET,
coding,
Development,
IDE,
Open Source,
Plugin,
Software,
Subversion,
Visual Studio
Subscribe to:
Posts (Atom)
