473,840 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Game

Here's a checkers game written in T-SQL that you can play in the sql
query analyzer.

Enjoy :-)

Jul 20 '05 #1
3 3104
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.

Enjoy :-)

Now that's SQL abuse. :)

I remember about 2 years ago, there was discussion in
rec.games.rogue like.misc about the possibility of doing a roguelike game in
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.

Enjoy :-)

Now that's SQL abuse. :)

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

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

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

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 yeah,-that's-non-obvious dept. theodp writes "As if there weren't enough dodgy patents, here's an excerpt from one granted to Microsoft Tuesday for a 'Method and apparatus for displaying information regarding stored data in a gaming system': 'When saving a game,...
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. I hesitate to state genre preferences. I've been all over SourceForge and it's slim pickings in C# land, at least for projects that have actually gotten something done. I'll be doing my last round of sifting and searching tonight, then I'm...
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 # # Brick & Ball in Python # by Jerry Fleming <jerryfleming@etang.com>
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 strength and health, when 0 die. I need to know how to make them interact. I need to know what to do with teraform (creek, pasture, brick road) how to add. I need the public interface to look like the forest. classes need to function the program...
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 found a bug that I can't figure out (believe me; I've tried everything and asked for help several times on the IRC-channel). The updateMsg() and iMsg() takes a list of message-lines as argument (or process a string to a list), and it'll output...
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 data into an array of structures, with the animal and question in the same variable(question) and the bool isAnimal tells me whether its an animal or a question. If its a question it is followed by two numbers; one for the position of the line to go...
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 statements, and os file operator. My code needs some adjustments, most of all at the end. Please give some tips!!! import os while True: print"Welcome to trivia game!" print "0-Choose a game to play:" print "1- IQ Test.trv"
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 managed to write a code for a single player (human -vs- computer) game. My problem is, now we want to merge the two games with options to pick which game you would like to play. However, the games were written totally different styles and I can't...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.