Skip to: Site menu | Main content


Welcome to PSP-Programming.com, a place for developers to get together.

Welcome to the forums. Here you can find other user tutorials as well as homebrew releases and the source code repository. You can also ask for help with your code here and post your own homebrew!

PSP-Programming.com Forums
February 10, 2012, 02:12:10 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

News: Welcome to PSP-Programming.com
Home Help Search Shop Login Register
Digg This!
Pages: [1]
Print
Author Topic: [C] Scrabble Help 0.1  (Read 5055 times)
gibbocool
Embellished by our ignorance
News Posters
Hero Member
*

Karma: +34/-11
Offline Offline

Posts: 822
2973.87 points

View Inventory
Send Money to gibbocool

Power Overwhelming


View Profile WWW
« on: April 22, 2007, 10:42:28 PM »

Well for a college assignment I had to make a Scrabble Helper for PC. It was quite a challenge and I enjoyed doing it. So now I have decided that it would be much more useful on a portable computer, so I decided to put my PSP coding skills to the test and port it to PSP.

I started about 6 hours ago and it's working pretty well if I do say so myself Smile

So what is Scrabble Help you ask? Basically it's something that will help you in a good old game of Scrabble. You know scrabble right? Wink  Say you have a set of letters "JTRA". The program will search a dictionary for all possible words you can make out of those letters! So in the above example it would return:
ART, JAR, RAJ, RAT, TAR. 

Neat right? Wait! There's more! The program also supports wild cards. A wild card in Scrabble Help is "_" (underscore). That means it will substitute any letter in the alphabet to try and make a word. Words that are found with the underscore have that letter displayed in lower case. For example if you have "JTR_", the program will return:
aRT, cRT, JaR, JeT, JoT, JuT, RaJ, RaT, ReT, RoT, RuT, TaR, ToR, TRw, TRy.

Right now there is a limitation that only the first 175 or so words that are found will be displayed because the screen isn't big enough to display any more Wink I'll be working on that some time though.

To Do:
  • Improve interface and allow more words to be printed
  • Allow user to change minimum amount of letters in a word
  • Give the scrabble score of each word

Installation:
  • Copy the folder "scrabble-help" into your GAME directory if you are using a custom firmware.
  • If you are using FW 1.50, download the kxploited version.

Download Scrabble Help 0.1 (src not included)
Download Scrabble Help 0.1 kxploited (src not included)
« Last Edit: April 22, 2007, 10:48:42 PM by gibbocool » Logged



Omar-C++
I love PSPs..
All-Around Dev
Hero Member
*

Karma: +64/-100
Offline Offline

Posts: 668
882.14 points

View Inventory
Send Money to Omar-C++


View Profile
« Reply #1 on: May 11, 2007, 05:32:05 PM »

Just curious, did you make a dictionary file and took the time to type up all the words or was there a simpler way of doing this?
Logged
Ryalla
harleyg
Hero Member
*****

Karma: +50/-12
Offline Offline

Posts: 813
9999999.99 points

View Inventory
Send Money to Ryalla


View Profile
« Reply #2 on: May 11, 2007, 09:59:51 PM »

Just curious, did you make a dictionary file and took the time to type up all the words or was there a simpler way of doing this?

There are dictionary files on the web for specific use with programs. Quite handy for projects such as this.
Logged
gibbocool
Embellished by our ignorance
News Posters
Hero Member
*

Karma: +34/-11
Offline Offline

Posts: 822
2973.87 points

View Inventory
Send Money to gibbocool

Power Overwhelming


View Profile WWW
« Reply #3 on: May 13, 2007, 02:17:34 AM »

I got the dictionary file from my uni, but yea you can download any dictionary and it *should* work.
Logged

jamiefuller
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10
51.53 points

View Inventory
Send Money to jamiefuller


View Profile WWW
« Reply #4 on: May 24, 2007, 11:20:21 PM »

Great Stuff Gibbocool,

If you fancy a 'harder' challange try the same but for 'Boggle', I just wrote the game for the PSP and although it works perfectly I wanted to do what you did with this to produce not only a list of all the words the player got, but then a list of all the possible words, (to show how many they missed).

But My mind got all confused and twisty by the logic Smile

the words all vary from 3 to 8 letters, but must come from a grid of 16 letters, each letter must be adjacent to the preceeding letter. Its a doozy Smile

my game is here if you're interested

http://30dbs.blogspot.com/2007/05/game-ready.html
Logged
gibbocool
Embellished by our ignorance
News Posters
Hero Member
*

Karma: +34/-11
Offline Offline

Posts: 822
2973.87 points

View Inventory
Send Money to gibbocool

Power Overwhelming


View Profile WWW
« Reply #5 on: May 27, 2007, 01:28:43 AM »

I wanted to do what you did with this to produce not only a list of all the words the player got, but then a list of all the possible words, (to show how many they missed).
I don't understand, you want to enter in the words that you choose?
Logged

Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.336 seconds with 29 queries.
Sister Sites: Guitar Hero 4   BrokeniTouch.com