869 Topics

Member Avatar for
Member Avatar for mixmagz

Here is a code for those who wants Tic Tac Toe [CODE]#include <string.h> #include <stdio.h> #include <conio.h> #include <dos.h> #include <io.h> main() { //_setcursortype(_NOCURSOR); int x1=0, x2=0, x3=0, x4=0, x5=0, x6=0, x7=0, x8=0, x9=0; int o1=0, o2=0, o3=0, o4=0, o5=0, o6=0, o7=0, o8=0, o9=0; int a1=0, a2=0, a3=0, a4=0, a5=0, …

Member Avatar for mkamrul
0
1K
Member Avatar for seh1

Hi, My friend is thinking of creating a game in which you hack into a fake safe/vault "A" and once you are in that "safe" you write code/create a firewall to stop the next person getting into that safe behind you (i.e. into safe "A") and then you work on …

Member Avatar for Dani
0
282
Member Avatar for Benjamin_10

Hi I've got most of the code finished but I can't for the life of me figure out how to correctly count neighbors for the edges and corners of the array. These are the rules. If the cell is currently empty: If the cell has exactly three living neighbors, it …

Member Avatar for Hiroshe
0
4K
Member Avatar for 111100/11000

//**numHits and numHalfHits give incorrect values.I don't know why** #include "Mastermind-game.hpp" using namespace std; int main() { bool choice = false; cout << "This is a game of MASTERMIND v.0.1" << endl; while(1) { cout << "Enter 1 if you want to solve game for your self" << endl; cout …

Member Avatar for nullptr
0
537
Member Avatar for chiste91

Hi. i need some help with this game i want to simulate with c++ (with the graphics.h library). i want to make a replica of Pacman. i already built the map, but now i got stuck: #1. i don't know how can i avoid the walls/obstacles (i have a blurry …

Member Avatar for shafaqsajjad
0
11K
Member Avatar for Vikram Sehgal

So i have a code for a menu and i am facing some problem.. code:- do { ch = getch(); switch(ch) { case 'W': case 'w': system("CLS"); cout<<" MOD v1.0\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout << " --> PLAY\n\n"; cout<<" HELP\n\n"; cout<<" EXIT\n\n"; break; case 'E': case 'e': system("CLS"); cout<<" MOD v1.0\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout << …

Member Avatar for jkhippie
0
260
Member Avatar for rao naeem
Member Avatar for Stavros_1
0
265
Member Avatar for ahmedzahir
Member Avatar for baby_c

Hi friends..! Need little help here to choose a language to code my 2nd year project assignment. We are given to develop a 'Tank game' which will ultimately play over a network. maximum four players can join the game, there is a server application runnig on a server machine and …

Member Avatar for rozermartin28
0
336
Member Avatar for Vikram Sehgal

Hello, I am making a 2d shooter game, and I dont knnow how to make the player's ship move left and right with left and right arrow keys... please help me. I have to finish this project before 6th... please help

Member Avatar for Vikram Sehgal
0
251
Member Avatar for 111100/11000

/* Made in code::blocks 12.11 -randomly generated terrain mirrored to be equal for bought players - - */ #include <iostream> #include <windows.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <fstream> #include <cstring> #include <string> #include <cstdlib> #include <ctime> #include <sstream> #include <cctype> using namespace std; //Public functions char printMap(char terraniValue); …

Member Avatar for 111100/11000
0
1K
Member Avatar for skorm909

I have a c++ game that i made and i was wondering how i would make it so that i could add graphics, or just use the same basic concept of the game and just put those into a fresh game that i make with graphics. well my question is …

Member Avatar for BogdanCov
0
2K
Member Avatar for joseph.suanino

#include<stdio.h> #include<math.h> #include<conio.h> #include<string.h> #include<stdlib.h> int main() { int i, n, diff; int x=rand() % 100; int bMoveHigher = 0; int bGuessedCorrectly = 0; printf("Welcome to Guess a Number Game\n"); for(i=1; i<=6; i++) { printf("ATTEMPT %d: Enter your number: ", i); scanf("%d", &n); if(n==x) { printf("Congrats! You have guessed the …

Member Avatar for David W
0
283
Member Avatar for joseph.suanino

#include <stdio.h> #include <math.h> #include <conio.h> #include <process.h> #include <string.h> void main() { int i, n, diff; int x = rand() % 100; int bMoveHigher = 0; int bGuessedCorrectly = 0; printf("Welcome to Guess a Word Program\n"); for (i = 1; i <= 5; i++) { printf("ATTEMPT %d: Enter the …

Member Avatar for Schol-R-LEA
0
223
Member Avatar for MiniApocalypse

HI guys! Im making a sudoku game. Ive got all the numbers in a 9 by 9 vector. But im unsure how to proceed. How do i work out which blank space (selected by the mouse) corrisponds with which blank space in the vector? I need it to work out …

Member Avatar for WolfPack
0
147
Member Avatar for Encheiridion

hi, done some work is not finished yet but this two versions\stages are runable. and what is very helpfull, to read opinion, suggestion, critic, ideas, feelings about. here is the link: http://softwareconstructor.webs.com/ and i need to read what u think about two firsts: * tryout2 (10bm) * and tryout1 (190mb) …

Member Avatar for Jorge Cordeiro
0
192
Member Avatar for hasbuy
Member Avatar for Gupta_1

hi friend i would like to make a programe in c++(code block) . which include the fallling candy, and the candy is collected by a baby below. so could you help me to make that game in c++

Member Avatar for Ancient Dragon
0
130
Member Avatar for Doogledude123

So I have a button which adds a "Miner" then removes the cost of the Miner. The problem is that it is taking away too much, double the cost, and also will not buy if the current gold is equal to the cost. I have no idea why it is …

Member Avatar for sepp2k
0
304
Member Avatar for b.moattar

a program to play Rush Hour. the board is supposed to look like this: -------- |GG...Y| |P..B.Y| |PRRB.Y> |P..B..| |O...TT| |O.FFF.| -------- then You may assume the user enters either upper-case or lower-case input, with or without intervening spaces. and The program ends when the red car touches the '>' …

Member Avatar for rubberman
0
251
Member Avatar for game4tress

I'm creating a chat system and the problem is that when testing with two users, the secound user (entering the system) can see the first user (already loged in), but the first user will never see the next user(s) entering the system. I know that the problem comes from the …

0
202
Member Avatar for Urgent
Member Avatar for GUIPaPa

Guys why is my image not loading on my JFrame?? BTW I am using eclipse on my mac. Code for Board : package ourgame; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Board extends JPanel implements ActionListener { Dude p; public Image img; Timer time; public Board() { p = …

Member Avatar for GUIPaPa
1
492
Member Avatar for happygeek

As a gamer myself, I thought that last year was a pretty good one. After all, not only did I get to play both GTA V and Call of Duty: Ghosts (indeed, I'm still playing it and working my may through the prestige levels) but if I had enough spare …

Member Avatar for DarkSealer
0
656
Member Avatar for James_25

I know this may seem to be beating the proverbial dead horse, however I haven't seen anything specific to what language is best to terraforming and generation of a basic sandbox. Any suggestions as to what languages or even programs that can be tied into game development for interaction between …

Member Avatar for emilo35
0
264
Member Avatar for happygeek

Nintendo is sitting firmly at the top of the games console tree right now, having just been 'bigged up' by the release of the US sales figures for October which show the Wii on 803,000 and the DS on 491,000. Both well ahead of nearest rival, the Xbox 360 on …

Member Avatar for johndaniweb
0
1K
Member Avatar for java786

Write a program that simluates a game of dice. In this game, players take alternate turns rolling two dice. On each turn, they record the sum of the two dice and add this to their total. If a player rolls a doublet (both dice have the same value), then the …

Member Avatar for mathijs
0
4K
Member Avatar for pakawakawak

My university's TA helped me setup all the necessary files to run OpenGL on vs 2008 (even though his .cpp and .h files were written in vs2013) yet when I compile the project, it gives me a white window. The same code will display a 3d mouse in the computer …

Member Avatar for pakawakawak
0
154
Member Avatar for tingwong

Hello everyone, this is my first help post on daniweb so please excuse me if I have done something wrong. So as for my question, I have to shuffle an array of card objects. This is the code I have come up with so far. public void shuffleDeck(){ Random seed …

Member Avatar for cael13
0
1K
Member Avatar for maryyy

Should be written with the program which will be programmed lotto game in which the generated 7 random numbers in the range of numbers from 1 to 39 (valid numbers are from 1 to 39). Generating numbers must be stored in a vector. Design of the program will be: - …

Member Avatar for NathanOliver
-1
112

The End.