Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Programming Challenge #9 - writing a basic game
New Posts  All Forums:Forum Nav:

Programming Challenge #9 - writing a basic game

post #1 of 34
Thread Starter 
Let's have some fun: Write a Blackjack game

Next challenge: Fun With Cryptography.
Previous challenge: Create a crossword solver.

Rules of Blackjack:
I'm sure most of us have played blackjack before - be it in a casino or on our phones. But for those who haven't, the rules are very simple:
  • The player starts off with 2 cards
  • The player can "hit" (be dealt another card) or "stand" (stick with the cards dealt)
  • The aim is to get as close to 21 points as you can, without going over
  • If a player gets 22 or more, then they lose
  • Aces count as 11 or 1 (ie if the player has 21 or less, then ace is 11. If the player has more than 21, then ace is worth 1)
  • All other royalty is worth 10

There are more rules - but for the sake of simplicity, these are all we'll work with for now.

Specification:
I'm not bothered if you guys decide to bend the rules a little (or even a lot) to write this game. And this can be a console app or written in OpenGL - and everything in-between.

This challenge isn't about problem solving, it's just about creating something fun. So the solutions I'm listing below aren't set in stone. Basically if you're stuck for ideas, then pick a difficulty level, otherwise just write something fun smile.gif

Solutions:
Easiest:
  • deck is entirely random (ie you can draw the same card twice)
  • you don't need to assign each card a suit (ie clubs, diamonds, etc)
  • you can hard code the value of ace to be either 1 or 11

Easy:
  • you cannot draw the same card twice within the same game
  • each card must belong to a suit (ie clubs, diamonds, etc)
  • you can hard code the value of ace to be either 1 or 11

Medium:
  • you cannot draw the same card twice within the same game
  • each card must belong to a suit (ie clubs, diamonds, etc)
  • the value of ace changes dynamically based on total value of the cards in your hand

Hard:
  • you cannot draw the same card twice within the same game
  • each card must belong to a suit (ie clubs, diamonds, etc)
  • the value of ace changes dynamically based on total value of the cards in your hand
  • there is a computer opponent (the dealer) who tries to equal your value or beat it (while still remaining under 22). if the computer succeeds, it wins that round. if you get a higher value and remain under 22, then you win that round.

Hardest:

Footnote:

In the interest of keeping this thread tidy, can all code be posted inside code tags, that are inside spoiler tags. eg:

[SPOILER=Source code, written in C#]
[CODE]
// code be here
[/CODE]
[/SPOILER]

Edited by Plan9 - 4/9/14 at 7:57am
post #2 of 34
Here is a quick version in python that I made. Not sure what level it is because I've included some aspects of each.

Source Code, Written in Python (Click to show)
Code:
#!/usr/bin/python

import random as r

deck = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]*4
dealer = []
player = []
z = 'y'

def clear():
    import os
    if os.name == 'posix':
        os.system('clear')
    
def showHand():
    hand = 0
    for i in player: hand += i 
    print "The dealer is showing a %d" % dealer[0]
    print "Your hand totals: %d (%s)" % (hand, player)

def setup():
    for i in range(2):
        dealDealer = deck[r.randint(1, len(deck)-1)]
        dealPlayer = deck[r.randint(1, len(deck)-1)]
        dealer.append(dealDealer)
        player.append(dealPlayer)
        deck.pop(dealDealer)
        deck.pop(dealPlayer)
setup()

while z != 'q':
    showHand()
    z = raw_input("[H]it [S]tand [Q]uit: ").lower()
    clear()
    if z == 'h':
        dealPlayer = deck[r.randint(1, len(deck)-1)]
        player.append(dealPlayer)
        deck.pop(dealPlayer)
        hand = 0
        for i in dealer: hand += i
        if not hand > 15:   
            dealDealer = deck[r.randint(1, len(deck)-1)]
            dealer.append(dealDealer)
            deck.pop(dealDealer)
        hand = 0
        for i in player: hand += i
        if hand > 21:
            print "BUST!"
            player = []    
            dealer = []    
            setup()         
        hand = 0
        for i in dealer: hand +=i
        if hand > 21:
            print "Dealer Busts!"
            player = []
            dealer = []
            setup()
    elif z == 's':
        dHand = 0           
        pHand = 0           
        for i in dealer: dHand += i
        for i in player: pHand += i
        if pHand > dHand:
            print "YOU WIN!"    
            dealer = []
            player = []
            setup()
        else:
            print "YOU LOSE!"    
            dealer = []
            player = []
            setup()
    else:
        if z == 'q':
            kk = raw_input("Goodbye. [Hit Enter]")
        else:
            print "Invalid choice."

Edited by DizZz - 6/12/13 at 9:13am
Project Arch
(16 items)
 
BigByte
(8 items)
 
Macbook Pro
(8 items)
 
CPUMotherboardGraphicsRAM
Intel i7 5960x @ 4.8ghz Asus X99-E WS 2 x Nvidia Quadro K6000 Corsair Dominator Platinum 64gb 2666 
Hard DriveCoolingOSMonitor
2 x Samsung 850 Pro 512gb {RAID 0} Swiftech H320 w/ Noctua NF-F12 iPPC Arch Linux w/ OpenBox 2 x LG 31MU97 Cinema 4K 
KeyboardPowerCaseMouse
Vortex KBC Poker II PBT EVGA SuperNOVA 1000 G2 Corsair Obsidian 450D Zowie FK1 
Mouse PadAudioAudioOther
Steelseries QCK+ Beyerdynamic DT 770 Pro 80Ω Audioengine D1 Intel X540-T2 NIC 
CPUMotherboardRAMHard Drive
Intel Avoton C2750 Octa-Core ASRock C2750D4I Samsung 64gb ECC 1600mhz 8 x Samsung 850 Pro 1TB 
OSPowerCaseOther
FreeNAS SilverStone ST45SF-G 450w SilverStone DS380 Intel X540-T2 NIC 
CPUGraphicsGraphicsRAM
Intel i7-4960HQ Intel Iris 5200 Pro NVIDIA GT 750M 2gb 16gb (2x8gb) 1600mhz 
Hard DriveMonitorMouseMouse Pad
1tb PCIe SSD 15.4" {2880x1800} IPS SteelSeries Sensei [RAW] SteelSeries QcK Mini 
  hide details  
Reply
Project Arch
(16 items)
 
BigByte
(8 items)
 
Macbook Pro
(8 items)
 
CPUMotherboardGraphicsRAM
Intel i7 5960x @ 4.8ghz Asus X99-E WS 2 x Nvidia Quadro K6000 Corsair Dominator Platinum 64gb 2666 
Hard DriveCoolingOSMonitor
2 x Samsung 850 Pro 512gb {RAID 0} Swiftech H320 w/ Noctua NF-F12 iPPC Arch Linux w/ OpenBox 2 x LG 31MU97 Cinema 4K 
KeyboardPowerCaseMouse
Vortex KBC Poker II PBT EVGA SuperNOVA 1000 G2 Corsair Obsidian 450D Zowie FK1 
Mouse PadAudioAudioOther
Steelseries QCK+ Beyerdynamic DT 770 Pro 80Ω Audioengine D1 Intel X540-T2 NIC 
CPUMotherboardRAMHard Drive
Intel Avoton C2750 Octa-Core ASRock C2750D4I Samsung 64gb ECC 1600mhz 8 x Samsung 850 Pro 1TB 
OSPowerCaseOther
FreeNAS SilverStone ST45SF-G 450w SilverStone DS380 Intel X540-T2 NIC 
CPUGraphicsGraphicsRAM
Intel i7-4960HQ Intel Iris 5200 Pro NVIDIA GT 750M 2gb 16gb (2x8gb) 1600mhz 
Hard DriveMonitorMouseMouse Pad
1tb PCIe SSD 15.4" {2880x1800} IPS SteelSeries Sensei [RAW] SteelSeries QcK Mini 
  hide details  
Reply
post #3 of 34
Thread Starter 
Quote:
Originally Posted by DizZz View Post

Here is a quick version in python that I made. Not sure what level it is because I've included some aspects of each. Warning: Spoiler! (Click to show)
Code:
#!/usr/bin/python

import random as r

deck = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]*4
dealer = []
player = []
c = 'y'

def clear():
    import os
    if os.name == 'posix':
        os.system('clear') #Pass clear to terminal
    
def showHand():
    hand = 0
    for i in player: hand += i #Tally up the total
    print "The dealer is showing a %d" % dealer[0]
    print "Your hand totals: %d (%s)" % (hand, player)

#Gives player and dealer their cards
def setup():
    for i in range(2):
        dealDealer = deck[r.randint(1, len(deck)-1)]
        dealPlayer = deck[r.randint(1, len(deck)-1)]
        dealer.append(dealDealer)
        player.append(dealPlayer)
        deck.pop(dealDealer)
        deck.pop(dealPlayer)
setup()

while c != 'q':
    showHand()
    c = raw_input("[H]it [S]tand [Q]uit: ").lower()
    clear()
    if c == 'h':
        dealPlayer = deck[r.randint(1, len(deck)-1)]
        player.append(dealPlayer)
        deck.pop(dealPlayer)
        hand = 0
        for i in dealer: hand += i
        if not hand > 15:   #Dealer strategy.
            dealDealer = deck[r.randint(1, len(deck)-1)]
            dealer.append(dealDealer)
            deck.pop(dealDealer)
        hand = 0
        for i in player: hand += i
        if hand > 21:
            print "BUST!"
            player = []     #Clear player hand
            dealer = []     #Clear dealer's hand
            setup()         #Run the setup again
        hand = 0
        for i in dealer: hand +=i
        if hand > 21:
            print "Dealer Busts!"
            player = []
            dealer = []
            setup()
    elif c == 's':
        dHand = 0           #Dealer's hand total
        pHand = 0           #Player's hand total
        for i in dealer: dHand += i
        for i in player: pHand += i
        if pHand > dHand:
            print "YOU WIN!"    
            dealer = []
            player = []
            setup()
        else:
            print "YOU LOSE!"    
            dealer = []
            player = []
            setup()
    else:
        if c == 'q':
            gb = raw_input("Goodbye. [Hit Enter]")
        else:
            print "Invalid choice."

Is that from a past exercise or tit you literally just bang that code out in the last hour?
If the latter, then I'm massively impressed.
post #4 of 34
Quote:
Originally Posted by Plan9 View Post

Is that from a past exercise or tit you literally just bang that code out in the last hour?
If the latter, then I'm massively impressed.

Just did this in the last hour biggrin.gif It's a pretty simple game once you break it down into the different segments and python is incredibly fast and efficient for this type of exercise.
Project Arch
(16 items)
 
BigByte
(8 items)
 
Macbook Pro
(8 items)
 
CPUMotherboardGraphicsRAM
Intel i7 5960x @ 4.8ghz Asus X99-E WS 2 x Nvidia Quadro K6000 Corsair Dominator Platinum 64gb 2666 
Hard DriveCoolingOSMonitor
2 x Samsung 850 Pro 512gb {RAID 0} Swiftech H320 w/ Noctua NF-F12 iPPC Arch Linux w/ OpenBox 2 x LG 31MU97 Cinema 4K 
KeyboardPowerCaseMouse
Vortex KBC Poker II PBT EVGA SuperNOVA 1000 G2 Corsair Obsidian 450D Zowie FK1 
Mouse PadAudioAudioOther
Steelseries QCK+ Beyerdynamic DT 770 Pro 80Ω Audioengine D1 Intel X540-T2 NIC 
CPUMotherboardRAMHard Drive
Intel Avoton C2750 Octa-Core ASRock C2750D4I Samsung 64gb ECC 1600mhz 8 x Samsung 850 Pro 1TB 
OSPowerCaseOther
FreeNAS SilverStone ST45SF-G 450w SilverStone DS380 Intel X540-T2 NIC 
CPUGraphicsGraphicsRAM
Intel i7-4960HQ Intel Iris 5200 Pro NVIDIA GT 750M 2gb 16gb (2x8gb) 1600mhz 
Hard DriveMonitorMouseMouse Pad
1tb PCIe SSD 15.4" {2880x1800} IPS SteelSeries Sensei [RAW] SteelSeries QcK Mini 
  hide details  
Reply
Project Arch
(16 items)
 
BigByte
(8 items)
 
Macbook Pro
(8 items)
 
CPUMotherboardGraphicsRAM
Intel i7 5960x @ 4.8ghz Asus X99-E WS 2 x Nvidia Quadro K6000 Corsair Dominator Platinum 64gb 2666 
Hard DriveCoolingOSMonitor
2 x Samsung 850 Pro 512gb {RAID 0} Swiftech H320 w/ Noctua NF-F12 iPPC Arch Linux w/ OpenBox 2 x LG 31MU97 Cinema 4K 
KeyboardPowerCaseMouse
Vortex KBC Poker II PBT EVGA SuperNOVA 1000 G2 Corsair Obsidian 450D Zowie FK1 
Mouse PadAudioAudioOther
Steelseries QCK+ Beyerdynamic DT 770 Pro 80Ω Audioengine D1 Intel X540-T2 NIC 
CPUMotherboardRAMHard Drive
Intel Avoton C2750 Octa-Core ASRock C2750D4I Samsung 64gb ECC 1600mhz 8 x Samsung 850 Pro 1TB 
OSPowerCaseOther
FreeNAS SilverStone ST45SF-G 450w SilverStone DS380 Intel X540-T2 NIC 
CPUGraphicsGraphicsRAM
Intel i7-4960HQ Intel Iris 5200 Pro NVIDIA GT 750M 2gb 16gb (2x8gb) 1600mhz 
Hard DriveMonitorMouseMouse Pad
1tb PCIe SSD 15.4" {2880x1800} IPS SteelSeries Sensei [RAW] SteelSeries QcK Mini 
  hide details  
Reply
post #5 of 34
Thread Starter 
Quote:
Originally Posted by DizZz View Post

Just did this in the last hour biggrin.gif It's a pretty simple game once you break it down into the different segments and python is incredibly fast and efficient for this type of exercise.
Yeah, I can't make the challenges too difficault because otherwise beginners wouldn't stand a chance and many of the more seasoned programmers might not have time. But all the same, that's some good work there mate smile.gif

If you fancy a tougher challenge then check out the hardest problem in my programming challenge #8:
http://www.overclock.net/t/1395543/programming-challenge-8-challenges-for-both-beginners-and-experts
post #6 of 34
Quote:
Originally Posted by Plan9 View Post

Yeah, I can't make the challenges too difficault because otherwise beginners wouldn't stand a chance and many of the more seasoned programmers might not have time. But all the same, that's some good work there mate smile.gif

If you fancy a tougher challenge then check out the hardest problem in my programming challenge #8:
http://www.overclock.net/t/1395543/programming-challenge-8-challenges-for-both-beginners-and-experts

Just found these so I'll get right on it. Thanks for making these up they're a fun little challenge thumb.gif
Project Arch
(16 items)
 
BigByte
(8 items)
 
Macbook Pro
(8 items)
 
CPUMotherboardGraphicsRAM
Intel i7 5960x @ 4.8ghz Asus X99-E WS 2 x Nvidia Quadro K6000 Corsair Dominator Platinum 64gb 2666 
Hard DriveCoolingOSMonitor
2 x Samsung 850 Pro 512gb {RAID 0} Swiftech H320 w/ Noctua NF-F12 iPPC Arch Linux w/ OpenBox 2 x LG 31MU97 Cinema 4K 
KeyboardPowerCaseMouse
Vortex KBC Poker II PBT EVGA SuperNOVA 1000 G2 Corsair Obsidian 450D Zowie FK1 
Mouse PadAudioAudioOther
Steelseries QCK+ Beyerdynamic DT 770 Pro 80Ω Audioengine D1 Intel X540-T2 NIC 
CPUMotherboardRAMHard Drive
Intel Avoton C2750 Octa-Core ASRock C2750D4I Samsung 64gb ECC 1600mhz 8 x Samsung 850 Pro 1TB 
OSPowerCaseOther
FreeNAS SilverStone ST45SF-G 450w SilverStone DS380 Intel X540-T2 NIC 
CPUGraphicsGraphicsRAM
Intel i7-4960HQ Intel Iris 5200 Pro NVIDIA GT 750M 2gb 16gb (2x8gb) 1600mhz 
Hard DriveMonitorMouseMouse Pad
1tb PCIe SSD 15.4" {2880x1800} IPS SteelSeries Sensei [RAW] SteelSeries QcK Mini 
  hide details  
Reply
Project Arch
(16 items)
 
BigByte
(8 items)
 
Macbook Pro
(8 items)
 
CPUMotherboardGraphicsRAM
Intel i7 5960x @ 4.8ghz Asus X99-E WS 2 x Nvidia Quadro K6000 Corsair Dominator Platinum 64gb 2666 
Hard DriveCoolingOSMonitor
2 x Samsung 850 Pro 512gb {RAID 0} Swiftech H320 w/ Noctua NF-F12 iPPC Arch Linux w/ OpenBox 2 x LG 31MU97 Cinema 4K 
KeyboardPowerCaseMouse
Vortex KBC Poker II PBT EVGA SuperNOVA 1000 G2 Corsair Obsidian 450D Zowie FK1 
Mouse PadAudioAudioOther
Steelseries QCK+ Beyerdynamic DT 770 Pro 80Ω Audioengine D1 Intel X540-T2 NIC 
CPUMotherboardRAMHard Drive
Intel Avoton C2750 Octa-Core ASRock C2750D4I Samsung 64gb ECC 1600mhz 8 x Samsung 850 Pro 1TB 
OSPowerCaseOther
FreeNAS SilverStone ST45SF-G 450w SilverStone DS380 Intel X540-T2 NIC 
CPUGraphicsGraphicsRAM
Intel i7-4960HQ Intel Iris 5200 Pro NVIDIA GT 750M 2gb 16gb (2x8gb) 1600mhz 
Hard DriveMonitorMouseMouse Pad
1tb PCIe SSD 15.4" {2880x1800} IPS SteelSeries Sensei [RAW] SteelSeries QcK Mini 
  hide details  
Reply
post #7 of 34
Tried a 15min challenge with this.



Basic with c# winforms, missing hiding the first card of the dealer though rolleyes.gif
It's pretty terrible anyways redface.gif
Source code, written in C# (Click to show)
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BlackJack
{
    public partial class Form1 : Form
    {

        string[] Cards = new string[] { "1♥", "2♥", "3♥", "4♥", "5♥", "6♥", "7♥", "8♥", "9♥", "10♥", "11♥", "12♥", "13♥",
                                        "1♦", "2♦", "3♦", "4♦", "5♦", "6♦", "7♦", "8♦", "9♦", "10♦", "11♦", "12♦", "13♦",
                                        "1♣", "2♣", "3♣", "4♣", "5♣", "6♣", "7♣", "8♣", "9♣", "10♣", "11♣", "12♣", "13♣",
                                        "1♠", "2♠", "3♠", "4♠", "5♠", "6♠", "7♠", "8♠", "9♠", "10♠", "11♠", "12♠", "13♠"};

        List<int> CpuCards = new List<int>();
        List<int> PlayerCards = new List<int>();

        public Form1()
        {
            InitializeComponent();



        }


        private void btnDeal_Click(object sender, EventArgs e)
        {
            ShuffleDeck();
            DealCards();
        }


        private void ShuffleDeck()
        {

            lblResult.Text = "Result: N/A";
            Random r = new Random();
            for (int i = 0; i < Cards.Length; i++) 
            {
                int i2 = r.Next(i, Cards.Length);
                String s = Cards[i];
                Cards[i] = Cards[i2];
                Cards[i2] = s;    
            }
        }

        private void DealCards() 
        {
            btnDeal.Enabled = false;
            btnHit.Enabled = true;
            btnStay.Enabled = true;

            CpuCards.Clear();
            PlayerCards.Clear();

            Random r = new Random();

            int nextCard = r.Next(0, Cards.Length);


            while (PlayerCards.Count < 2) 
            {
                if (!PlayerCards.Contains(nextCard))
                    PlayerCards.Add(nextCard);
                nextCard = r.Next(0, Cards.Length);
            }

            while (CpuCards.Count < 2) 
            {
                if (!PlayerCards.Contains(nextCard) && !CpuCards.Contains(nextCard))
                    CpuCards.Add(nextCard);
                nextCard = r.Next(0, Cards.Length);
            }

            DisplayValues();

        }


        private void DisplayValues(bool hit = false, bool stay = false) 
        {
            lblPlayer.Text = "You: ";
            lblComputer.Text = "Comp: ";

            List<int> PlayerValues = new List<int>();
            List<int> CompValues = new List<int>();

            foreach (int i in PlayerCards) 
            {
                lblPlayer.Text += Cards[i];
                PlayerValues.Add(GetValue(Cards[i]));
            }

            foreach (int i in CpuCards) 
            {
                lblComputer.Text += Cards[i];
                CompValues.Add(GetValue(Cards[i]));
            }


            int PlayerTotal = 0;
            int CompTotal = 0;

            foreach (int i in PlayerValues) 
            {
                if (i == 1)
                {
                    PlayerTotal += 11;
                    if (PlayerTotal > 21)
                        PlayerTotal -= 10;
                }
                else 
                {
                    PlayerTotal += i;
                }
            }

            foreach (int i in CompValues) 
            {
                if (i == 1)
                {
                    CompTotal += 11;
                    if (CompTotal > 21)
                        CompTotal -= 10;
                }
                else 
                {
                    CompTotal += i;
                }
            }

            lblPlayer.Text += " Total: " + PlayerTotal.ToString();
            lblComputer.Text += " Total: " + CompTotal.ToString();

            if (PlayerTotal == 21 && CompTotal == 21)
            {
                Tie();
            }
            else 
            {
                if (PlayerTotal <= 21 && CompTotal <= 21)
                {
                    if (PlayerTotal == 21)
                        Win();
                    else if (CompTotal == 21)
                        Loss();
                }
                else 
                {
                    if (PlayerTotal > 21)
                        Loss();
                    else if (CompTotal > 21)
                        Win();
                    else
                      Tie();
                }
            }

            if (hit)
            {
                Random r = new Random();

                int nextCard = r.Next(0, Cards.Length);
                int curCount = PlayerCards.Count;

                while (PlayerCards.Count < curCount + 1)
                {
                    if (!PlayerCards.Contains(nextCard) && !CpuCards.Contains(nextCard))
                        PlayerCards.Add(nextCard);
                    nextCard = r.Next(0, Cards.Length);
                }

                DisplayValues();
            }

            if (stay) 
            {
                if (CompTotal < 17) 
                {
                    Random r = new Random();

                    int nextCard = r.Next(0, Cards.Length);
                    int curCount = CpuCards.Count;

                    while (CpuCards.Count < curCount + 1)
                    {
                        if (!PlayerCards.Contains(nextCard) && !CpuCards.Contains(nextCard))
                            CpuCards.Add(nextCard);
                        nextCard = r.Next(0, Cards.Length);
                    }

                    if (CompTotal < 17)
                        DisplayValues(false, true);
                    else
                        DisplayValues();
                }
            }

        }

        private void Tie() 
        {
            lblResult.Text = "Result: TIE!";
            btnDeal.Enabled = true;
            btnHit.Enabled = false;
            btnStay.Enabled = false;
         
        }

        private void Win() 
        {
            lblResult.Text = "Result: YOU WIN!";
            btnDeal.Enabled = true;
            btnHit.Enabled = false;
            btnStay.Enabled = false;
        }

        private void Loss() 
        {
            lblResult.Text = "Result: YOU LOSE!";
            btnDeal.Enabled = true;
            btnHit.Enabled = false;
            btnStay.Enabled = false;
        }


        private int GetValue(String s) 
        {
            if (s.Length > 2)
                return Convert.ToInt32(s.Substring(0, 2));
            else
                return Convert.ToInt32(s.Substring(0, 1));
        }

        private void btnHit_Click(object sender, EventArgs e)
        {
            DisplayValues(true, false);
        }

        private void btnStay_Click(object sender, EventArgs e)
        {
            DisplayValues(false, true);
        }


    }
}

Edited by Jiiks - 6/12/13 at 9:24am
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
post #8 of 34
Thread Starter 
Guys, would you mind putting your code in inside spoilers please:

[SPOILER=Source code, written in C#]
[CODE]
// code be here
[/CODE]
[/SPOILER]
post #9 of 34
Quote:
Originally Posted by Plan9 View Post

Guys, would you mind putting your code in inside spoilers please:

[SPOILER=Source code, written in C#]
[CODE]
// code be here
[/CODE]
[/SPOILER]

Sure thumb.gif
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
Haswell
(21 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 4770K @ 4Ghz Gigabyte Z87X-UD5H Sapphire Radeon R9 290 Vapor-X G.Skill RipjawsZ 4x4GB 2400Mhz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 126GB Crucial MX100 4x512GB WD Caviar Green EZRX Crucial M500 120GB 
Optical DriveCoolingOSMonitor
Samsung DVD Corsair Hydro H105 Windows 7 Ultimate Acer B276HK 
MonitorMonitorKeyboardPower
Dell P2314H Samsung SA700 Logitech G710+ Seasonic P-660 XP2 
CaseMouseMouse PadAudio
Fractal Design Arc Midi R2 Razer Deathadder 2013 Mionix Sargas 900 Asus Xonar DX/XD 
Audio
Beyerdynamics Custome One Pro White 
  hide details  
Reply
post #10 of 34
Well I am going all out, all I have to do today is sit for a TB or two of files to be parsed.

EDIT: Did everyone elses' buttons to include, URL, images, formatting etc etc disappear?
Edited by Thereoncewasamaninparis - 6/12/13 at 1:13pm
Croissant
(15 items)
 
  
CPUMotherboardGraphicsRAM
2600k Asus Sabertooth Z77 GTX 680 2x4 gigs G-SKill 
Hard DriveOptical DriveCoolingOS
Crucial C300 2x Asus DVD-RW Silver Arrow Win 7 
MonitorPowerCaseAudio
Dual ASUS 24" Rosewill 750 Capstone Corsair Carbide Air 540 The Basic sound blaster Z-Series 
  hide details  
Reply
Croissant
(15 items)
 
  
CPUMotherboardGraphicsRAM
2600k Asus Sabertooth Z77 GTX 680 2x4 gigs G-SKill 
Hard DriveOptical DriveCoolingOS
Crucial C300 2x Asus DVD-RW Silver Arrow Win 7 
MonitorPowerCaseAudio
Dual ASUS 24" Rosewill 750 Capstone Corsair Carbide Air 540 The Basic sound blaster Z-Series 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Programming Challenge #9 - writing a basic game