473,412 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

SQL Game

Here's a checkers game written in T-SQL that you can play in the sql
query analyzer.
http://www.geocities.com/swint002/checkers.txt

Enjoy :-)

Jul 20 '05 #1
3 3077
On 4 Jul 2004 09:34:47 -0700, sw******@yahoo.com wrote:
Here's a checkers game written in T-SQL that you can play in the sql
query analyzer.
http://www.geocities.com/swint002/checkers.txt

Enjoy :-)


Now that's SQL abuse. :)

I remember about 2 years ago, there was discussion in
rec.games.roguelike.misc about the possibility of doing a roguelike game in
SQL.
Jul 20 '05 #2
Ross Presser <rp******@imtek.com> wrote in message news:<14******************************@40tude.net> ...
On 4 Jul 2004 09:34:47 -0700, sw******@yahoo.com wrote:
Here's a checkers game written in T-SQL that you can play in the sql
query analyzer.
http://www.geocities.com/swint002/checkers.txt

Enjoy :-)


Now that's SQL abuse. :)

I remember about 2 years ago, there was discussion in
rec.games.roguelike.misc about the possibility of doing a roguelike game in
SQL.


BTW - there's a bug in the game. If you promote a piece to a King,
then try to 'take' a piece backwards in a move that would result in a
double-take, you get a "stored procedure not found" error. Shame
really, because it's a very neat game. If I understood the code well
enough I might even try to debug it, but I ain't that clever and I
don't have the time! :-)
Jul 20 '05 #3
>> Here's a checkers game written in T-SQL <<

Part of me is delighted with this because I love weird programming
tricks. Another part of me is thinking "I hope he gets a job soon" :)

Instead of using T-SQL for this, try to use more pure SQL in a game.
The following is a damn good exercise.

I happen to like Pai Gow Tiles for two reasons: (1) it is cool to be
the only white guy looking a like James Bond in a three piece suit at
an Asian game table (2) The traditional house way is statistical
flawed.

You have a set of 32 Chinese dominoes. These dominoes are based on the
toss of two dice seen as a total and not as a pair, so there are no
blanks like western dominoes and there are duplicates in the set.

The players get a hand of four tiles, which they arrange into two
hands (high and low) of two tiles. For you to win, both your hands
must beat the bank;
For the banker to win, both his hands must beat both your hands;
otherwise, the bet is a push (tie).

There are three ways to arrange the four tiles of a hand; the banker's
hand has to be drawn from the remainging tiles. Basically, it is a
combinatorics and probability problem.

The real trick is to do the data mining to come up with rules for
playing the game.

Google it!
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

138
by: theodp | last post by:
--> From http://www.techdirt.com/articles/20040406/1349225.shtml Microsoft Patents Saving The Name Of A Game Contributed by Mike on Tuesday, April 6th, 2004 @ 01:49PM from the...
7
by: Brandon J. Van Every | last post by:
Anyone know of any "good" open source C# game projects out there? Something that actually has a game engine and some content done, so I can just fiddle with it and do interesting / goofy things. ...
1
by: Jerry Fleming | last post by:
Hi, I have wrote a game with python curses. The problem is that I want to confirm before quitting, while my implementation doesn't seem to work. Anyone can help me? #!/usr/bin/python # #...
1
by: fowle040 | last post by:
I underlined and bold print my files. I need to know how to make this code into a working game. The object of the game is to have two players 1- belle and 2-beast. I want them to lose and gain...
7
by: Gasten | last post by:
Hello. The last weeks I've been coding a roguelike (you know, like nethack) in python using the nCurses library. Some week ago I ran into a problem: When I made the object for messagebar-output, I...
5
by: Kraken | last post by:
Hi, i have a bit of a problem here. I have an assignment to do an animal guessing game using an original database and updating it as the user enters new animals in it. The program enters the file...
5
by: alesitaam | last post by:
Help!!!! Im new using python, currently writing a program which tests one game, IQ test. When the module is run, the program should ask user to choose the game to start. Also, I'm using Try...Except...
2
by: LilMeechc20 | last post by:
Hello, I have a group assignment that I have to do. We have to write a Tic Tac Toe game. One person in my group has managed to write the code for a multiplayer (human -vs- human) game and I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.