Sie sind vermutlich noch nicht im Forum angemeldet - Klicken Sie hier um sich kostenlos anzumelden Impressum 
Sie können sich hier anmelden
Dieses Thema hat 1 Antworten
und wurde 301 mal aufgerufen
 More languages
Raman Offline




Beiträge: 167

25.05.2021 15:35
Scrabble3D application used as a Sudoku assembly game Zitat · Antworten

Scrabble3D application used as a Sudoku assembly game

1 point: 1 ×9, 2 ×9, 3 ×9, 4 ×9, 5 ×9, 6 ×9, 7 ×9, 8 ×9, 9 ×9

In 2 of my test games that are played against the computer, I used 2 tiles in each of the player's racks at any one time. But, it can be larger than that also.
Or it can be 1 also, but Scrabble3D application does not allow 1. It starts with a minimum of 2 tiles in each of the player's racks at any one time.

I also removed all scoring squares except for the double word score in the central square at the start of the game, which is compulsory to have for Scrabble3D application to start any game although it need not be unique or at the central square of the Scrabble board. The double word score at the central square is crucial to give the starting player a balanced bias of Scrabble score eventhough the length of the starting integer would be 1 or 2 and it would score 2 points or 4 points respectively.
In the computer details settings in the computer engine section of options tab in settings submenu in configuration menu of Scrabble3D application, for playing against the computer with the Sudoku dictionary without any issues for the first few moves, 'exchange tiles if score or number of tiles is lesser than' value should be reduced from 10 points and length should be reduced from 5 tiles to their minimum possible values of 0 points and 3 tiles respectively to avoid one or more computer players from swapping their own tiles during the first few moves.

While playing against the computer, it is impossible to ensure same digit along a horizontal row or vertical column when separated by a space or within each of the 9 squares in the Sudoku grid.
In the Sudoku dictionary, all that I would be able to define are all integers from 1 digit to 9 digits without any zeros and without any repeated digits.

Please note that this sudoku.py Python program of mine automatically sorts all Sudoku dictionary words based upon ASCII and Unicode characters by itself.

There are a total of 986409 integers in Sudoku dictionary.
Please note that (9C1 × 1!) + (9C2 × 2!) + (9C3 × 3!) + (9C4 × 4!) + (9C5 × 5!) + (9C6 × 6!) + (9C7 × 7!) + (9C8 × 8!) + (9C9 × 9!) = 986409.

sudoku.dic: https://drive.google.com/file/d/1yTjyJl0...iew?usp=sharing

sudoku.py

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
from itertools import permutations
print '[Header]'
print 'Version=100000'
print 'Author=Raman Viswanathan <raman22feb1988@gmail.com>'
print 'StandardCategory=Sudoku numbers'
print 'Licence=GNU General Public License, v3'
print 'Release=20.05.21'
print 'Comment=Sudoku assembly game'
print 'Letters=1,2,3,4,5,6,7,8,9'
print 'Values=1,1,1,1,1,1,1,1,1'
print 'Counts=9,9,9,9,9,9,9,9,9'
print 'Key='
print '[Replace]'
print '[Categories]'
print '[Words]'
l = []
for i in range(1, 10000000):
s = str(i)
t = set(s)
if len(s) == len(t) and '0' not in t:
l.append(s)
x = '123456789'
for j in range(9):
y = x[:j] + x[j + 1:]
z = permutations(y)
for item in list(z):
l.append(''.join(item))
p = permutations(x)
for thing in list(p):
l.append(''.join(thing))
l.sort()
for element in l:
print element + '='
 

Scotty Offline

Administrator


Beiträge: 3.788

26.05.2021 08:51
#2 RE: Scrabble3D application used as a Sudoku assembly game Zitat · Antworten

Funny :-)


Download: Sourceforge | Help:Wiki | Discussion: Forum | News: Twitter | Fanship: Facebook | IRC: Freenode #scrabble3d

 Sprung  
Xobor Forum Software von Xobor.de
Einfach ein Forum erstellen
Datenschutz