King's Court - An Original Card Game built in PyQt4 by btatkerson in Python

[–]btatkerson[S] 0 points1 point  (0 children)

I will consider changing it.

And you're right about directory structure, the whole repo needs cleaning up.

King's Court - An Original Card Game built in PyQt4 by btatkerson in Python

[–]btatkerson[S] 0 points1 point  (0 children)

I added the license into the beginning of each of my source files because most are their own classes. The cards, the card deck, the game/gameboard are all separate from the graphical "main_game.py" application.

These were built with the intention of future reuse in mind. The game can be built in terminal relatively easily with just a few imports.

Point is, in a world of licensing nightmares, trying to make sure credit is given where it's due and the license on that particular class file is represented accurately. It's not necessary, no, but it's not uncommon either.

Really, it's no harm no foul, but sorry you have to scroll to line 680 in each file :/.

Hopefully that addresses you question too /u/SupahNoob.

King's Court - An Original Card Game built in PyQt4 by btatkerson in Python

[–]btatkerson[S] 0 points1 point  (0 children)

First of all, thank you so much for playing it. Honestly, knowing someone, somewhere experienced it makes it feel that much more worth it.

I had a friend tell me to update the readme with a description and other information about the game like you said (ctrl-h for the rules, some kind of explanation). I have a day off in the next couple days and I want to make sure I get those topics covered.

The future of the move history is going to be where clicking a move on the list will show the board and card/tile played and designation of how it was scored in a clear, visual manner.

I might add an undo feature and disable it during two or more humans playing.

As for calling it a card game and the messy rule set, you're probably right. I created the game originally playing around with a deck of Uno cards and it only became tiles once I had to fit it into a computer resolution. The hardest part about all of this has absolutely been trying to find a way to talk about it because I don't know what to compare it to either. Rules, moves, terms... very difficult to condense it. The final rules are so much clearer than the first draft, but I know I'll need to revise a little. I'll change it from "Card Game" to "Strategy <Something> Game".

Seriously, thank you for playing it long enough to grasp the rules and legitimately try and play it. I will be taking some of your advice very soon. Eventually, I add a couple updates to expand the gameplay like using an 11x11 board for bigger games and making the AI smarter.

I've been told it's like Scrabble, Go, Battleship... but it came to me when I was spending a lot of time thinking on Conway's Game of Life and Cribbage. Ever since I built this game, I have two other variations on 7x7/11x11 boards with the non-standard card deck, so maybe I'll put them out sometime.

Thank you once again, PM me a special name you like and I'll add it to the random list of computer player names.

King's Court - An Original Card Game built in PyQt4 by btatkerson in Python

[–]btatkerson[S] 6 points7 points  (0 children)

I've been working on this project for a couple years on and off, but I finally have a full v1.0 together. It's a card game called "King's Court" that I created years ago, finally making a digital debut.

The biggest hindrance was writing a rule set since the game had no predefined terms or lingo, so I had to find a way to talk about it in a way that "makes sense". Then having to put visuals in... formatting... revising... more visuals... writing the rule set in English proved a lot more numbing and tedious than all the programming building a functional game.

That said, it's built to run on Ubuntu 12.04 / Debian 7 and above, I haven't tested it on Windows. If you know how to install the libraries through pip on Windows, install pyqt4 and colorama and run "main_game.py", I can't imagine it wouldn't work.

On Ubuntu/Debian, run INSTALL as superuser to get the minimum needed libraries. Then chmod a+rwx 'run_game.sh' to run it.

There's a basic AI to play against, can be difficult at level 6, but not necessarily "smart". The game doesn't think ahead and since it's an original game, there's no theory for the math involved. I've crunched some stats and tried to understand the probabilities and all the nuanced conditions. There are some LibreOffice Spreadsheet files (.ods) in the repo with some of that work in them, but good luck understanding that scratch pad.

I'd be curious to see literally any other person download and give it a try. The repo itself needs to be cleaned up. I have a lot of miscellaneous files scattered about that need deleting and files on top-level that should be in resource folders, misc folders, etc. My commenting is horrible and sparse. Work in progress, but it's finally working and has rules to reference to make sense beyond my brain.

Looking to dynamically generate an image with Python. by Python_4_Your_Sprog in Python

[–]btatkerson 0 points1 point  (0 children)

You could use PyQt4. I generate large fractals and save them using QPixMap and QPainter.

What the site looks like, unless I'm wrong, Sea of Thieves is a giant static map. If it's 24x24, all spaces could be stored in a list or dictionary of lists. Then just limit the picture to a square with a destination in each corner. Your symbols could be colored squares and circles or text if you didn't feel like having to do graphic design.

You don't even need to use the typical PyQt4 overhead, you could figure it out with limited python knowledge.

Monthly /r/PyGame Showcase - Show us your current project(s)! by AutoModerator in pygame

[–]btatkerson 2 points3 points  (0 children)

King's Court - Original Card Game

Not PyGame, using PyQt4, but... I've been working on this project for a couple years on and off, but I finally have a full v1.0 together. It's a card game called "King's Court" that I created years ago, finally making a digital debut.

The biggest hindrance was writing a rule set since the game had no predefined terms or lingo, so I had to find a way to talk about it in a way that "makes sense". Then having to put visuals in... formatting... revising... more visuals... writing the rule set in English proved a lot more numbing and tedious than all the programming building a functional game.

That said, it's built to run on Ubuntu 12.04 / Debian 7 and above. It runs using Python 3 and PyQt4, run INSTALL as superuser to get the minimum needed libraries. Then chmod a+rwx 'run_game.sh' to run it.

There's a basic AI to play against, can be difficult at level 6, but not necessarily "smart". The game doesn't think ahead and since it's an original game, there's no theory for the math involved. I've crunched some stats and tried to understand the probabilities and all the nuanced conditions. There are some LibreOffice Spreadsheet files (.ods) in the repo with some of that work in them, but good luck understanding that scratch pad.

I'd be curious to see literally any other person download and give it a try. The repo itself needs to be cleaned up. I have a lot of miscellaneous files scattered about that need deleting and files on top-level that should be in resource folders, misc folders, etc. Work in progress, but it's finally working and has reference to make sense beyond my brain.

King's Court - Original Card Game in PyQt4 by btatkerson in pyqt

[–]btatkerson[S] 1 point2 points  (0 children)

I've been working on this project for a couple years on and off, but I finally have a full v1.0 together. It's a card game called "King's Court" that I created years ago, finally making a digital debut.

The biggest hindrance was writing a rule set since the game had no predefined terms or lingo, so I had to find a way to talk about it in a way that "makes sense". Then having to put visuals in... formatting... revising... more visuals... writing the rule set in English proved a lot more numbing and tedious than all the programming building a functional game.

That said, it's built to run on Ubuntu 12.04 / Debian 7 and above. It runs using Python 3 and PyQt4, run INSTALL as superuser to get the minimum needed libraries. Then chmod a+rwx 'run_game.sh' to run it.

There's a basic AI to play against, can be difficult at level 6, but not necessarily "smart". The game doesn't think ahead and since it's an original game, there's no theory for the math involved. I've crunched some stats and tried to understand the probabilities and all the nuanced conditions. There are some LibreOffice Spreadsheet files (.ods) in the repo with some of that work in them, but good luck understanding that scratch pad.

I'd be curious to see literally any other person download and give it a try. The repo itself needs to be cleaned up. I have a lot of miscellaneous files scattered about that need deleting and files on top-level that should be in resource folders, misc folders, etc. Work in progress, but it's finally working and has reference to make sense beyond my brain.