Questions tagged [scrabble]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
112 views

Week 2 Lab Scrabble

I am working on the scrabble lab and I am unsure of where I have gone wrong in my code. #include <ctype.h> #include <cs50.h> #include <stdio.h> #include <string.h> // Points ...
0
votes
0answers
20 views

Week 2, lab. Working code bit, but it is way too slow due to the amount of iteration it is needed to get the final output

My code is working, but it is extremely inefficient. For simple input "A!b" it takes about 2 minutes to get output. I know that I have do_while inside of for loops with a lot of steps, but ...
0
votes
1answer
42 views

Lab 2 Compute Score

So, I am trying to convert every letter of the word to lowercase but it isn't working. Here is my code: int compute_score(string word) { // TODO: Compute and return score for string for (int i ...
0
votes
1answer
26 views

Scrabble doesn't handle numbers

My scrabble program gets broken when I put numbers into it. #include <ctype.h> #include <cs50.h> #include <stdio.h> #include <string.h> // Points assigned to each letter of ...
0
votes
1answer
39 views

can someone translate this to human?

scrabble.c:64:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type] } ^ 1 error generated. make: *** [<builtin>: scrabble] Error 1 its for this guy(...
0
votes
1answer
12 views

if i initialize my variable the command line thinks i want a pointer. how do i declare without having to initalize?

rather than just letting me declare a variable the command line is telling me i need to initialize it, but setting it to 0 gives me a segmentation fault. at any rate i dont want a pointer. i want an ...
0
votes
1answer
19 views

why is my terminal asking me for syntax that I know is wrong?

scrabble.c:38:31: error: expected ';' after top level declarator int compute_score(string word) ^ ; scrabble.c:41:5: error: expected ...
0
votes
1answer
399 views

Lab 2 Double free or corruption error

I am working on scrabble.c for Lab 2 and was able to compile and run the code but for some of the words, there is this error: double free or corruption (out) Aborted (core dumped) I tried to google ...
0
votes
1answer
115 views

Input Problem Getting wrong char LAB2

QUESTION When i am giving an input as only ? and only ! ===> everything is normal result is equals to TIE Player1 : ? ---- Player2 : ! but when i give like Question? and Question! (? and !) ===&...