12 Replies - 8329 Views - Last Post: 03 March 2010 - 07:12 AM Rate Topic: -----

#1 hahaha1208   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 01-March 10

can someone teach me how to create a text twist game?

Posted 01 March 2010 - 07:24 AM

can someone teach me how to create a text twist game?
Is This A Good Question/Topic? 0
  • +

Replies To: can someone teach me how to create a text twist game?

#2 SwiftStriker00   User is offline

  • No idea why my code works
  • member icon

Reputation: 439
  • View blog
  • Posts: 1,617
  • Joined: 25-December 08

Re: can someone teach me how to create a text twist game?

Posted 01 March 2010 - 07:32 AM

What do you want to learn?
Was This Post Helpful? 0
  • +
  • -

#3 Adkins   User is offline

  • D.I.C Addict
  • member icon

Reputation: 66
  • View blog
  • Posts: 560
  • Joined: 27-October 09

Re: can someone teach me how to create a text twist game?

Posted 01 March 2010 - 08:01 AM

What is a text twist game?

Also what is your base knowledge of C# and/or .NET?

This post has been edited by Adkins: 01 March 2010 - 08:02 AM

Was This Post Helpful? 0
  • +
  • -

#4 DuoShin85   User is offline

  • D.I.C Head
  • member icon

Reputation: 39
  • View blog
  • Posts: 135
  • Joined: 18-December 09

Re: can someone teach me how to create a text twist game?

Posted 01 March 2010 - 09:40 AM

Text Twist is a word game where you make 3, 4, 5, and 6 letter words out of 6 letters provided to you each round. You win a round by getting at least one 6 letter word. It's rather fun.
Was This Post Helpful? 1
  • +
  • -

#5 MentalFloss   User is offline

  • .
  • member icon

Reputation: 619
  • View blog
  • Posts: 1,590
  • Joined: 02-September 09

Re: can someone teach me how to create a text twist game?

Posted 01 March 2010 - 12:15 PM

Quote

Text Twist is a word game where you make 3, 4, 5, and 6 letter words out of 6 letters provided to you each round. You win a round by getting at least one 6 letter word. It's rather fun.


Ah, so the poster wants a text twist solver then?

Or do they want to implement a text twist clone?
Was This Post Helpful? 0
  • +
  • -

#6 Adkins   User is offline

  • D.I.C Addict
  • member icon

Reputation: 66
  • View blog
  • Posts: 560
  • Joined: 27-October 09

Re: can someone teach me how to create a text twist game?

Posted 02 March 2010 - 12:53 AM

I would be interested to see what kind of logic is involved in picking the letters to give to the player. Random 6 letters doesn't guarantee a 6 letter word, and a 6 letter word doesn't guarantee an overly large number of other size words (which could lead to frustration of the player). This could be interesting.
Was This Post Helpful? 0
  • +
  • -

#7 DuoShin85   User is offline

  • D.I.C Head
  • member icon

Reputation: 39
  • View blog
  • Posts: 135
  • Joined: 18-December 09

Re: can someone teach me how to create a text twist game?

Posted 02 March 2010 - 02:00 PM

There is probably a library of six letter words they have, because I get a lot of repeat words when I play.
Was This Post Helpful? 0
  • +
  • -

#8 MentalFloss   User is offline

  • .
  • member icon

Reputation: 619
  • View blog
  • Posts: 1,590
  • Joined: 02-September 09

Re: can someone teach me how to create a text twist game?

Posted 02 March 2010 - 03:47 PM

You could solve them easily by scraping data off an anagram site that allows you to provide the allowed characters.

As for generating them, maybe you could download one of those cracker's dictionary files and prune out all words with 6 letters exactly. From there, hit that anagram site again. Order the results of solving for each word by number of words available. From there, you could just query for the highest word counts for all analyzed 6 letter words.

EDIT: Clarified my meaning behind the query comment.

This post has been edited by MentalFloss: 02 March 2010 - 03:49 PM

Was This Post Helpful? 0
  • +
  • -

#9 Adkins   User is offline

  • D.I.C Addict
  • member icon

Reputation: 66
  • View blog
  • Posts: 560
  • Joined: 27-October 09

Re: can someone teach me how to create a text twist game?

Posted 03 March 2010 - 12:42 AM

I think I might just try that this weekend!
Was This Post Helpful? 0
  • +
  • -

#10 Ferencn   User is offline

  • D.I.C Regular
  • member icon

Reputation: 71
  • View blog
  • Posts: 322
  • Joined: 01-February 10

Re: can someone teach me how to create a text twist game?

Posted 03 March 2010 - 12:59 AM

Edit: added the year this happened. Boy, oh boy, oh boy :-)

This brings back memories :-)

I once (summer of 1994!) implemented an algorithm for a TV gameshow.

The show revolved around 7 letterwords. First, a team was given a 7 letter word, and they were given 1 minute to make a list of as many 3 or more letter subwords they could make from that word. The software picked the starting word in such a way that a 7 letter anagram was also available.
Then the other team also got 1 minute, and could push a button 3 times in that minute to get a 'random' letter, and they could then try to 'steal' words from the opponents list by adding that letter to one of the 3, 4, 5, or 6 letter words and making a valid anagram. (a 7 letter word would be 'locked' since 7 was the maximum!)
next round the roles would be reversed.

I used a dictionary of 3-7 letter words, and indeed prepared a big list of valid 7 letter starting words, each with a reasonable amount of subwords.
during the game, the computer would constantly process all the words, made by the starting team, to see which letter(s), when added to a shorter word, would allow a new anagram. This resulted in a weighted list of valid stealing letters (some shorter words could be rearranged with more than one letter)
From that weighted list of letters a random draw would be made when the button was pushed so that it always was possible for the other team to at 'steal' a few words...

Hope this makes sense.

This post has been edited by Ferencn: 03 March 2010 - 01:03 AM

Was This Post Helpful? 0
  • +
  • -

#11 Adkins   User is offline

  • D.I.C Addict
  • member icon

Reputation: 66
  • View blog
  • Posts: 560
  • Joined: 27-October 09

Re: can someone teach me how to create a text twist game?

Posted 03 March 2010 - 01:06 AM

Wouldn't performance take a pretty serious hit having everything hard coded like that? Of course off the top of my head I can not think of better alternative, but still. Those lists of words had to be immense to account for everything!
Was This Post Helpful? 0
  • +
  • -

#12 Ferencn   User is offline

  • D.I.C Regular
  • member icon

Reputation: 71
  • View blog
  • Posts: 322
  • Joined: 01-February 10

Re: can someone teach me how to create a text twist game?

Posted 03 March 2010 - 01:39 AM

You are absolutely right. The wordlists were not that long, but all possible interconnections could get out of hand. Biggest problems in those days were indeed internal storage and processor speeds...
So I ended up doing a lot of optimizing, hashing and smart preprocessing.

Nowadays with GBs of internal ram and fast processors you can just enter a 7 letter word and have all possible subwords and stealing letters within the blink of an eye..

It was a lot of fun though!
Was This Post Helpful? 0
  • +
  • -

#13 MentalFloss   User is offline

  • .
  • member icon

Reputation: 619
  • View blog
  • Posts: 1,590
  • Joined: 02-September 09

Re: can someone teach me how to create a text twist game?

Posted 03 March 2010 - 07:12 AM

Quote

It was a lot of fun though!


I bet. What was the game show? Or is that a secret? :)

EDIT: Corrected spelling.

This post has been edited by MentalFloss: 03 March 2010 - 07:13 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1