Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for rlhh

[CODE] statsButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e){ //Return the string "stats" to gameLoop() as cmd } }); [/CODE] [CODE] public void gameLoop(){ Scanner lineScanner = new Scanner(System.in); cmd = ""; System.out.print(getBoard().printBoard(false)); while (!cmd.equals("quit")) { System.out.print(">"); Scanner wordScanner = new Scanner(lineScanner.nextLine()); if (wordScanner.hasNext()) { cmd = wordScanner.next(); if (cmd.equals("board")) { …

Member Avatar for mKorbel
0
213
Member Avatar for rlhh

Deck.h [ICODE]#include "stdafx.h" #ifndef DECK_H #define DECK_H class Deck { public: struct card{int symbol; int value;}; int symbol; int value; card card_list[52]; card deck[52]; card community[5]; card player1[2]; card player2[2]; card player1_hand[7]; card player2_hand[7]; void generate_deck(); void shuffle_deck(); void deal_cards(); int main(); private: static int const diamond = 1; static …

Member Avatar for Clinton Portis
0
89
Member Avatar for rlhh

Deck.h [CODE]#ifndef DECK_H #define DECK_H class Deck { public: struct card{int symbol; int value;}; card card_list[52]; void generate_deck(); void main(); private: static int const diamond = 1; static int const club = 2; static int const heart = 3; static int const spade = 4; }; #endif [/CODE] Deck.cpp [CODE] …

Member Avatar for rlhh
0
175
Member Avatar for rlhh

First, thanks for any replies that I'll receive. I'm currently trying to create a simple 1 player(comp vs player) poker game(simple as in minor game errors are allowed). After I initialize the deck, I shuffle the deck then deal the cards. After dealing the cards, I set the cards for …

0
64
Member Avatar for rlhh

First of all, thanks for any help that I'll receive. Now on to the question. I'm wondering how do I create an array of an object in C++? I've done this in Java before but I've got no idea how to do it in C++. [CODE] import Accout.java private Account …

Member Avatar for rlhh
0
199
Member Avatar for rlhh

[CODE]package ATM; // ATM.java import javax.swing.*; public class ATM { private boolean userAuthenticated; // user authentication private int currentAccountNumber; // current account number private Screen screen; // JOptionPane (pop-up(s)) private CashDispenser cashDispenser; // virtual cash dispenser private DepositSlot depositSlot; // virtual deposit slot private BankDatabase bankDatabase; // account database private …

Member Avatar for rlhh
0
2K
Member Avatar for rlhh

After a lot of trial & errors, I've managed to create an array as follow : xxx xxx xxx xxx 000 000 xxx 000 000 x00 000 000 x00 000 000 x00 000 000 x00 000 000 x00 000 000 x00 000 000 Now, when a user enters a value …

Member Avatar for Adak
0
166
Member Avatar for rlhh

I'm trying to print an array of 3x3 and placing random numbers within them that has no repetition. I think what I did was right but there just isn't any output. I know I can easily get the answer somewhere but I would like to know what is wrong with …

Member Avatar for abhimanipal
0
128
Member Avatar for rlhh

I'm trying to create a maze with a mouse inside moving up down left right in 200 moves. I've got everything working besides the fact that it duplicates the heart on the other side(If it exits on the left, it'll be duplicated at the right end) when the heart shape(mouse) …

Member Avatar for jephthah
0
186