17 Topics

Member Avatar for
Member Avatar for Doogledude123

I'm programming Blackjack and all is well, except after I type 'y' to hit again, the program terminates even though total is still less then 21. So my while statement is doing nothing? package com.github.geodox.blackjack; import java.util.Random; import java.util.Scanner; public class Blackjack { private static int total = 0; private …

Member Avatar for Doogledude123
0
320
Member Avatar for sinnerbynature

The below program is working but it have some constraint #include<windows.h> #include<iostream> using namespace std; void gotoxy(int x,int y) { COORD CursorPosition; CursorPosition.X=x; CursorPosition.Y=y; SetConsoleCursorPosition((GetStdHandle(STD_OUTPUT_HANDLE)),CursorPosition); } void decone(int num,char suit,int x,int y) { int i; for(i=0;i<200000000;i++); gotoxy(x,y); for(i=0;i<11;i++) { cout<<"*"; } y++; gotoxy(x,y); cout<<"*"; gotoxy(x+10,y); cout<<"*"; y++; gotoxy(x,y); cout<<"* "<<suit; …

Member Avatar for Ancient Dragon
0
234
Member Avatar for redfox9

Option Explicit Dim card(1 To 52) As String Dim cardused(1 To 52) As String Dim deck(1 To 52) As String Dim profit As Integer Dim playerscore(1 To 5) As Integer, dealerscore(1 To 5) As Integer Dim playercards As Integer, dealercards As Integer Dim currentcard As Integer Dim playerscard(1 To 6) …

Member Avatar for redfox9
0
209
Member Avatar for nomorelogic

so basically the thing is nearly complete, and im just trying to get it to work, im pretty sure i just havent closed off some statments and such, but i cannot for the life of me see where, or how to get the error messages to leave me alone in …

Member Avatar for nomorelogic
0
520
Member Avatar for Beastegargoyle

Hello, I am currently writing a card game in Java. My question is when I write the follwoing code below: `Inline Code Example Here` 38 // select a random number between 0 and 51 39 int second = randomNumbers.nextInt( NUMBER_OF_CARDS ); Will the program properly generate 52 cards? Should I …

Member Avatar for NormR1
0
316
Member Avatar for khuzdaar

I am familiar with loops, functions, recursions, (though I have praticed some questions, it is troubling to get the hang of it completely), passing by value, reference and ofcourse pointers. I can work with arrays and 2d arrays. This is my second project. My first project was hangman. My sir …

Member Avatar for khuzdaar
0
511
Member Avatar for germainelol

Hello, I am rather new to this so bare with me! I am currenlty creating a BlackJack game in Java and attempting to use the MVC design when creating it. I have so far created the following classes: - Card: To hold create a card - Deck: To create a …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Twistar

I am making a simple blackjack game. I have now made the deck which i can draw cards from. But I don't know how to get the values from each card so that i can add them together. I have a card class named Kort with the enum: [CODE]public enum …

Member Avatar for Twistar
0
264
Member Avatar for kbtiger88

[CODE]#include <iostream> #include <ctime> #include <cstdlib> #include <string> using namespace std; int getCardPoints(int value, int & aceValue) { if ((value >= 2) && (value <= 10)) { return (value); } else if (value == 1) { aceValue = 10; // 11 -1 return 1; // Already contain 1 for the …

Member Avatar for daviddoria
0
517
Member Avatar for Kirbz

I have a Blackjack Assignment I need some help on. The Full requirements, what the .exe should look like, and what I have done so far is in this picasa link: [COLOR="Green"]https://picasaweb.google.com/zaidalmas/November172011?authuser=0&authkey=Gv1sRgCNXrltTFwZnYNQ&feat=directlink[/COLOR] Sorry I couldn't get the insert link to work right. What I have done: I have shuffled the …

Member Avatar for WaltP
0
283
Member Avatar for effBlam

Im trying to change this modified blackjack game to where there is no computer. A choice of either two or three players is asked with three cards dealt instead. How can I i change this current code to 1) prompt user for either 2 or 3 players(no computer), 2) have …

Member Avatar for TrustyTony
0
206
Member Avatar for tristanbacon

Hello all, I am working on a Blackjack program, but am having a bit of trouble with the finer details. At the moment, I have a list of the cards and their values, as follows: [CODE] Jack = 10 Queen = 10 King = 10 Ace = 11 # card …

Member Avatar for TrustyTony
0
243
Member Avatar for jxe217

I'm having an issue with my program when I call the "drawCardFace" and "drawCardSuit" functions. The function calculates and gives one answer the first time I call it. And then uses that same answer the next 4 times I call it. Can someone explain what I need to do to …

Member Avatar for jxe217
0
211
Member Avatar for jeuxdeau2009

Im writing a blackjack program to train one to count cards using the Hi-Lo System. I found the engine online ( it was open sourced.) Instead of the code here using only numbers and Letters, i want to add only pictures of the cards instead of the numbers and card …

0
110
Member Avatar for dhawalruud

[code] #include<iostream.h> #include<conio.h> #include<iomanip.h> #include<stdio.h> #include<stdlib.h> #include<fstream.h> #include<string.h> int n=0; // current no. of players ( to add to next one) int num=0; // total number of players class date { public: int dd; int mm; int yy; }; class players { public: char name[30]; date dob; char userid[30]; char …

Member Avatar for jonsca
0
673
Member Avatar for The Pobo

Hey, I'm a student with rudimentry knoledge of VB6 and I've a college project where I have to develop a blackjack game. Unfortuanately I've a problem with the method I call the cards I was wondering if any of you would be able to shed some light on the problem. …

Member Avatar for The Pobo
0
212
Member Avatar for Graphix

You can place the game "Blackjack" by adding the following script to your website. All the information is included within the script, please do not remove the warranty or information. If you don't want such a big lap of code on your website, you can also place the following, as …

0
452

The End.