Results 1 to 2 of 2

Thread: Impossible problem

  1. #1

    Thread Starter
    Addicted Member Guru's Avatar
    Join Date
    May 2000
    Location
    sulking in the cupboard under the stairs
    Posts
    237

    Impossible problem

    OK so that got your attention!

    imagine a 4x4 grid containing letters A to P

    starting a any square on the grid move to another square
    you may move to anysquare as long as it hasn't been used already in this string of moves.

    How many combinations are there?

    Code:
    ABCD
    EFGH
    IJKL
    MNOP
    Starting a A we can then have B, F or E
    and so on

    Code:
    		C
    		G
    	B----->	F
    		E
    
    		B
    		C
    		G
    A ---> 	F---->	K
    		J
    		I
    		E
    
    		B
    		F
    	E---->	J
    		I
    Another light-hearted post from Guru

  2. #2
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    personally, i'd lob it in the mathes forum, one of the cyborgs in there will probably come up with a nice long algorithm for ya

    involving rules.

    i.e.

    if its in a corner it has a max of 3 possibilities
    if its on a side it has a max of 5 possibilities
    anywhere else has a max of 8.


    what about setting up a class module called LETTER
    which has a collection of LETTERS that it can go to and each LETTER object has a boolean value indicating whether it has been used already.

    its a start anyway!
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width