Lack of variables (<xsl:variable> should have been called <xsl:constant>) is what really bugs me about XSLT.
- 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
-
-
Originally posted by AtWLack 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
-
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
-
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 surviveComment
-
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
-
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.Originally posted by DaveBUmmm, 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.Comment
-
Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- IT contractor demand cools in June 2026 amid UK heatwave Yesterday 08:18
- How could zero hours contract reform create unexpected problems for contractors? Jul 8 06:40
- Three Loan Charge conflicts of interest show Labour ministers knew the McCann Review was compromised from the start Jul 7 05:44
- What’s happening with HMRC off-payroll working enforcement? (IR35 update) Jul 6 08:20
- HMRC abandons PGMOL football referees case: Are contractors and IR35 hit? Jul 2 05:09
- Crypto tax and contractors: What HMRC’s new cryptoasset research really means Jul 1 04:03
- Crypto Tax and Contractors: What HMRC's New Cryptoasset Research Really Means Jul 1 04:03
- Profit and loss accounts set for public filing at Companies House from 2028 — what it means for your contractor business Jun 30 03:38
- UK IT Contractors: How to land Forward Deployed Engineer roles beyond Palantir, Anthropic and OpenAI Jun 29 05:52
- The 3 highest-paying software contractor jobs right now, and what they actually pay Jun 25 03:52

Comment