War Card Game v1.2

I decided to tackle the idea I’ve been having of a War Card type game. Since I’ve been playing around with lists and object properties I figured why not. Let’s see how this could turn out. This one took me awhile. About 3 weeks actually of gradually working on it a little each day. The goal was to have seperation between the player, card, and game objects. The is still in the very basic stages. No graphics, text only, and no real control over the game other than running it. A while loop takes care of creating a card deck, shuffling the cards, dealing the cards, and playing the game. I have a todo list to add more user friendly functionality in the next coming version(s). And graphics also.. 🙂

Source Code Download

Continue reading

Advertisements

More Collection Initialization

This was another homework assignment that was done for a course I was taking. The requirements are commented in the code for each assignment button. This was more collections, initialization the collections, and iterating thru the collections to display the data. I’m also playing around with encapsulating data in a collection and iterating thru the collection to display the data. You will also see the various classes and object I’m using for the list items. And I’m taking advantage of using a class library on this project for code portability. No live version for this program because there isn’t much to see. You can download the source-code and take a look for yourself.

Continue reading

Dictionary Collections And Initialization

Dictionary collections are similar to the other types of collection I’ve posted about. With the exception of a Dictionary collection uses a key of type for each collection entry. This makes it so you can look-up an item by its key. Again this code is small and not a part of any program. More of my notes as I went along teaching myself about this collection type. Gotta be honest I was liking how this worked.

Continue reading

Collection Initialization

Just like the previous post. These are more of my notes as I’m trying different things. Not really any type of full fledged program. This is about collection initialization. The previous entry was how initialize objects and put them into some sort of list. So I got to reading further on how to take those objects, put the objects into a list collection, and initialize them and the list collection all at once. Again no live version of this program, no need really. You can download the source code to look at.

Continue reading

Lists & Object Initialization

This example isn’t a program the does anything special in particular. It’s more of my code showing my note taking process as I’m learning a particular action,  method, etc… I’ve gone back to studying list and dictionary collections. I’ll show you the various different things I’ve been trying over the next few posts. Pay attention to the comments in the code. You will only be able to download the source code for this. No Live example because I didn’t see the need. I’ve tried to explain what I was doing there so I don’t have to give any lengthy explanations here. However if you have any questions please post a comment.

Continue reading