game « Development « C Array Q&A

Home
C Array Q&A
1.bit
2.Byte
3.char
4.class
5.Development
6.Dimensional Array
7.dynamic
8.element
9.find
10.index
11.initialization
12.Integer
13.length
14.loop
15.memory
16.Operation
17.pointer
18.Print
19.size
20.Sort Search
21.string
22.struct
23.variable
C Array Q&A » Development » game 

1. Problems of a mastermind guessing game in C    stackoverflow.com

I am writing aa mastermind guessing game, but in the “White Check”, I need to remember (know) the positions of all the position “Blacks”. These positions are not required checking again. ...

2. How to count the "white" correctly in mastermind guessing game in c?    stackoverflow.com

“White" is the checking of correct number at wrong position. But I don't know how to count it correctly.

#include "stdafx.h"
#include "stdlib.h" 
#include "time.h"

int _tmain(int argc, _TCHAR* argv[])
{
    int answer[4];
 ...

3. Simple game in C using getch - segfault problem?    stackoverflow.com

The following code has segfault problems (It is also posted at pastebin):

#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include "mygetch.h"

#define MAX_SIZE 255
#define SCR_CLEAR "\033[2J\033[;H"

void getgrid(int, int);
void resetgrid(void);
void getkey(void);


static bool grid[5][5] = {{0,0,0,0,0},
  ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.