• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Scrabble Algorithm

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    Lack of variables (<xsl:variable> should have been called <xsl:constant>) is what really bugs me about XSLT.

    Comment


      #12
      Originally posted by AtW
      Lack of variables (<xsl:variable> should have been called <xsl:constant>) is what really bugs me about XSLT.

      My coding days are long gone, thankfully. Nowadays I have people to worry about these things for me
      "Being nice costs nothing and sometimes gets you extra bacon" - Pondlife.

      Comment


        #13
        So, so far, no-one has a clue. Thats what your saying.
        What happens in General, stays in General.
        You know what they say about assumptions!

        Comment


          #14
          Scrabble algorithm.

          Create game class
          Create position/square class.
          Create board class.
          Create rules class.
          Create score class.
          Create tile(s) class.
          Create player class.
          Create turn class
          Create words class
          etc

          I would use Backpropagation Neural Network to weight each of the 225 squares.

          Given set of pieces (randomly picked) I would use classes to work out possible scores for legal positions within certain timeframes and weight scoring based on NN weights.

          At end of game I would replay all moves into NN to adjust weights based on how good the move turned out to be. In this way, weights would adjust for strategically good positions such as edges and corners.

          PS. Looks like someone has nicked my idea using a timemachine (Threaded?)

          http://en.wikipedia.org/wiki/Maven_(Scrabble)

          PPS. Why do you want to know about Scrabble? If you are thinking of releasing a Scrabble computer game think again. Hasbro/Mattel will sue the arse off you as they have done with every other non-official computer version.
          Last edited by _V_; 7 September 2006, 09:29.
          First Law of Contracting: Only the strong survive

          Comment


            #15
            Make sure you implement proper rules as played in our household. Rude words count double.
            bloggoth

            If everything isn't black and white, I say, 'Why the hell not?'
            John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

            Comment


              #16
              Originally posted by DaveB
              Ummm, no.

              A loop is a sequence of statements which is specified once but which may be carried out several times in succession. The code "inside" the loop, the body of the loop, is obeyed a specified number of times, or once for each of a collection of items, or until some condition is met.

              A recursive procedure is one that in order to be completed may call itself a number of times in order to calculate the final result, not nessecerily in strict succession. For example:

              A procedure is recursive if one of the steps that makes up the procedure calls for a new running of the procedure. Therefore a recursive four course meal would be a meal in which one of the choices of appetizer, salad, entrée, or dessert was an entire meal in itself. So a recursive meal might be potato skins, baby greens salad, chicken parmesan, and for dessert, a four course meal, consisting of crab cakes, Caesar salad, for an entrée, a four course meal, and chocolate cake for dessert, so on until each of the meals within the meals is completed.
              I know what recursion is diptulip. Recursion is looping since one can take the state with the function call through an argument. The function is the body of the loop.

              Comment


                #17
                Hey MF, Marillion are still Sh...te.

                How is the bamboo furniture business doing?

                Comment

                Working...
                X