20 Topics

Member Avatar for
Member Avatar for waseem1345

hello, this is the part of the code I'm having a problem with if(a1==r1a || a2==r1b) {//REPLACING for(p=0;p<8;p++) { for(r=0;r<8;r++) { if( i[p][r]==1) { i[p][r]=0; } if(p==a1 && r==a2) { i[p][r]=1; r1a=p; r1b=r; } } } } I have only 2 units in the board of my chess game, intiger …

0
210
Member Avatar for vegaseat

A few hundred years ago the glorious leader of a big country wanted to reward the creator of the chess game. The creator of the game simply wanted one grain of rice put on the first square of the chessboard, two grains on the second, then doubling it for every …

Member Avatar for vegaseat
2
8K
Member Avatar for vegaseat

The story has it that a few hundred years ago the ruler of a big country wanted to reward the creator of the chess game. The creator of the game simply wanted one grain of rice put on the first square of the chessboard, two grains on the second, then …

Member Avatar for vegaseat
2
859
Member Avatar for ubhart

Hi, I am making program that finds solution how to put 12 knights(horses) to chess board that every square is dominated or engaged by other knight. Look at my code: #include <stdio.h> #include <stdlib.h> #include <stdbool.h> //(*******************************************************************************) void addNulls(char L[][9], int N[], int M[]) { int i,j,g; for (i=1 ; …

Member Avatar for ubhart
0
271
Member Avatar for ubhart

Hi I have to write program that finds a solution how to put 12 knights to a 8x8 chess board that every square would be dominated by one of the 12 knights. Do you have any suggestions from where I can start?

Member Avatar for ubhart
0
390
Member Avatar for galhajaj

hi :) i am new in C#, i am trying to make a little chess program and i need help in the chess board making. i make a new class "Square" that inherit from PictureBox (Square:PictureBox) and i made an array of 8x8 of Square in the Form1.cs and i …

Member Avatar for thousandbanks
0
1K
Member Avatar for happyhd

A console chess program that features normal chess rules including Castling, En Passant and promotion by choice. Detects draw if only kings are left, no moves possible and not in check or 50 consecutive moves without movement of a Pawn or a capture. Detects check/mate (obviously). Would be glad if …

Member Avatar for s.v.pavani
0
10K
Member Avatar for koolhawk

Im creating a Chess game. Im stuck at getting the pieces to move within the rules Aka bishop can only move diagonally. I Create Panels - 64 of them within a lager panel then add JLabels - The pieces - into those panels ` JLabel bb = new JLabel(new ImageIcon("bb.gif")); …

Member Avatar for NormR1
0
206
Member Avatar for Chuckleluck

Hello, Suppose I have a chess game. I make a nice class to handle an entire player's pieces: [CODE]class c_ChessTeam { private: // all pieces derive from class c_ChessPiece c_Rook Rook[2]; c_King King; c_Queen Queen; c_Bishop Bishop[2]; c_Knight Knight[2]; c_Pawn Pawn[8]; public: . . . };[/CODE] But what if I'm …

Member Avatar for mrnutty
0
180
Member Avatar for themenucha

Hi! I'm making a chess program, that need to move pieces on the chess board, get an input,check if the move is valid and print the output. The compiler finds some errors that i don't understand...I need some help with the pieces functions. Plz help me fix them!!! my attempts …

Member Avatar for DJSAN10
0
531
Member Avatar for themenucha

Hi!!! I'm trying to pass 2d array to function and i can't. In general i'm trying to print chess board in action. The board is an integer.I need a function that gets 2d array in specific place and returns correlatedm char. const int pawn = 1; const int rook = …

Member Avatar for themenucha
0
348
Member Avatar for kolibrizas

I got a file downloaded named "Rybka v2.3.2a.mp.w32.exe". In GUI chess software you are able to add this as a chess engine, but I have no clue how the input/output of that engine works. As I understand the program sends the engine current position and the engine returns some output. …

Member Avatar for thines01
0
175
Member Avatar for sat21091

hi guys please help me i want to know how i can pass an i ,j argumaents to the function abc so that i can do oprations on i, j in function abc [code]Button[,] b = new Button[8, 8]; void drawchessboard() { int x=60, y=10,z=0; for (int i = 0; …

Member Avatar for skatamatic
0
195
Member Avatar for wizard_x

Dear I am working on project to build a win 32 app that counts how many bishops on n x n board can be placed without attacking each other. Does someone worked on classes similar that I need ,or someone worked on similar console problem? Because the algorytm uses backtracking …

Member Avatar for ddanbe
0
119
Member Avatar for galhajaj

Hello, i have a little dificulties in the area of object-oriented programming i guess... i am making a chess-like game i created the classes "board" and "square" (the square inherit from picturebox) now - in the constructor of the board i create 8X8 squares inside it all the program is …

Member Avatar for galhajaj
0
215
Member Avatar for galhajaj

Hello! i am new in C# and i am trying to make a simple chess game but i need to clearify some things i guess... i understand how to add components to the Form1 with code - in my example i manage to add 8X8 squares class that inherit from …

Member Avatar for ddanbe
0
172
Member Avatar for galhajaj

Hi :) i am new in C# and i am a little confused with the abstruct, virtual and override terms in C#... why they are good for? i tried to google it but i got more confused... for example - i am making a chess program and i made a …

Member Avatar for Mitja Bonca
0
178
Member Avatar for galhajaj

Hello :) for a chess program, i made a 8x8 array of square:PictureBox objects and i set variables inside them for the row & col there is a way to dont use those row & col variables and just "take" the index of the square from the 8x8 array when …

Member Avatar for galhajaj
0
148
Member Avatar for jarograv

I have a code designed to show the different spaces a knight can move to in a standard chess game. It needs to be a function created that outputs the possible spaces in tuples. I can't figure out how to make the output in tuples and I would appreciate it …

Member Avatar for TrustyTony
0
1K
Member Avatar for NewOrder

This is my first c# application, it took me 2 months to write and it has over 3,000 lines of code.. [url]http://www.youtube.com/watch?v=2ZqYa8agDrQ&feature=channel_video_title[/url] I wanted to ask of your opinion, what do you think?!?

Member Avatar for NewOrder
0
109

The End.