Added .gitignore

master
Ruben-FreddyLoafers 2025-10-06 12:52:06 +02:00
parent b478119660
commit 27ca92b80b
3 changed files with 4 additions and 0 deletions

2
.gitignore vendored 100644
View File

@ -0,0 +1,2 @@
.venv
.vscode

View File

@ -23,6 +23,7 @@ board = np.array([
board_size = len(board) # Board is always quadratic
last_fitness = -np.sum([len(set(board[:, i])) != 9 for i in range(9)]) # -9
print("Working...")
while -np.sum([len(set(board[:, i])) != 9 for i in range(9)]):
for row in range(board_size):
for col in range(board_size):

View File

@ -41,6 +41,7 @@ def calculate_fitness(board):
last_fitness = calculate_fitness(board)
T = 10
print("Working...")
while calculate_fitness(board) < 0: # Continue until no violations
for row in range(board_size):
for col in range(board_size):