I want to use data structures to create like a 2D array (x,y) and then sort them by looking at x. The code is below but when I sort it, it sorts only the x's.. the corresponding y value doesn't...
Type: Posts; User: vex_helix
I want to use data structures to create like a 2D array (x,y) and then sort them by looking at x. The code is below but when I sort it, it sorts only the x's.. the corresponding y value doesn't...
malloc() or calloc() commands for dynamic memory allocation
How do u store make a string with letters to null ? strcpy(word, 0) ?
Also also do u detect if the string is null?
suppose I have a double pointer that stores words in a list:
ex:
char **wordlist;
How do I store the data of **wordlist into a 2-dimensional array say List[define][define2] which is also a...
Suppose you have 7 letters, how does one find all possible words from those letters? I can be a two letter, 3 word?
I made two differnet files and linked them into a project in Visual C++ (Ms). It gives an error which says that the Main method is already defined.
There are two main methods in each file and I...
I found an anagram program.. but it was designed for unix. Can someone help me convert it to windows? Or if someone has a better anagram algorithm?
============================= canonize.c...
Thx jez. Making words by integrating yr tiles and tiles on board is a little troublesome.
Hi,
I have successfully completed the human vs. human part for my program (some minor bugs remain :) ). I couldn't have done it without you guys. I greatly appreciate your help.
I think I am...
I like yr idea Quzah regarding entering one at a time. But how do I check all directions for words?
Consider initial words:
B
G E T
O
And I make both NOT AND BET
Argh.. this is getting frustrated. I fix one problem, another one appears. I am now having trouble on how to take in the user's input in a game of Scrabble. Consider the first player already went,...
Wow. That's actually not bad. Really simple to design and find words thx!!
But, here's the thing that's bothering me. How do I play new new letters on the existing words? Isn't the algorithm u...
I want to implement a computer play option with AI in my Scrabble game. I came across Appel-Jacobsen Move Generation, Maven and Gordon Move but they were to advanced for me as a beginner to write....
The shuffling and drawing works great thx...
Before proceeding ahead with my project and later encountering problems better ask this now.
The scrabble game can be against 2 - 4 people. So how...
How do draw a tile randomly?
From Salem's post, I understand how to shuffle an array. My idea is to create an array with predefined letters like you mentioned. Shuffle them. And them draw them 1...
Hi,
I am in the process of creating a Scrabble game. I am a beginner with C. I made a code that generates a certain amount of specific letters and store it in array:
#include <stdio.h>...