Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proving our alorithm's effectiveness #16

Open
Magulak opened this issue Jun 27, 2023 · 1 comment
Open

Proving our alorithm's effectiveness #16

Magulak opened this issue Jun 27, 2023 · 1 comment

Comments

@Magulak
Copy link
Collaborator

Magulak commented Jun 27, 2023

Description

At some point, we will need to evaluate the effectiveness of our algorithm. Choosing the path for evaluation earlier allows us to structure our code accordingly, enabling it to work with the chosen solution.

We can consider the following options:

  1. Utilizing accuracy metrics based on top-tier chess engines (as chess.org does).
    2..Checking our algorithm's ELO rating on public chess websites, similar to the approach described in this GitHub repository: https://github.com/lichess-bot-devs/lichess-bot/blob/master/README.md.
  2. Developing our own evaluation method based on our thesis."
  3. Evaluating effectiveness of our algorithm is not needed.

Area

Other

@Magulak
Copy link
Collaborator Author

Magulak commented Aug 22, 2023

stub instead of an algorithm:

`

Load and resize image

image = Image.open("Piece.png")
image = image.resize((87, 87))
image.save("Piece1.png")
image = pygame.image.load('Piece1.png').convert()

w_pawn_img = Image.open("w_pawn.png")
w_pawn_img = w_pawn_img.resize((87, 87))
w_pawn_img.save("w_pawn1.png")
w_pawn_img = pygame.image.load('w_pawn1.png').convert()

Make image see-through

image.set_alpha(200)
w_pawn_img.set_alpha(200)

Generate Pawn

piece_position_list = []
b_pawn = image.get_rect()  # image.get rect method only decides size of rect based on image size
b_pawn.x, b_pawn.y = 0, 87
x = 0
while x <= 8:
    exec(f"b_pawn{x} = b_pawn.copy()\n"
         f"piece_position_list.append(NamedRect(b_pawn{x},'b_pawn'))\n"

         f"b_pawn{x}.x, b_pawn{x}.y = x*87,87")  # i added {x} to b_pawn

    x = x + 1

white_pawn = w_pawn_img.get_rect()
x = 0
while x <= 8:
    exec(f"w_pawn{x} = white_pawn.copy()\n"
         f"piece_position_list.append(NamedRect(w_pawn{x},'w_pawn'))\n"
         f"w_pawn{x}.x, w_pawn{x}.y = x*87,522")
    x = x + 1

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant