Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8280629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:44:49+00:00 2026-06-08T09:44:49+00:00

I am trying to make a 2 player chess program with a GUI in

  • 0

I am trying to make a 2 player chess program with a GUI in wxPython that is able to validate moves and follow every chess rule.

Right now, I am at the beginning of my design and figuring out which board representation technique I should use. I recently thought the obvious, two dimensional array, but then I read about the 0x88 board representation that is supposedly faster in terms of lookups and logically checks if the square is inside the chessboard or not. But, if I make a program without AI, there is no need to check if someone has moved a move that is outside of the board.

Is there any other advantages with the 0x88 representation that I’m not aware of and which one would you recommend , the 8×8 approach or 0x88. Also, would it be easy to first use a 8×8 representation , and then later, maybe if I decide to add AI, use the 0x88 one ?
Thank you very much for your thoughts.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T09:44:50+00:00Added an answer on June 8, 2026 at 9:44 am

    I agree with you that if you’re not doing AI, there’s not a lot of reason to micro-optimize like that.

    One suggestion that I would make is that if you’re considering switching from 8×8 to 0x88 (and in general, for good code quality) is that you should abstract out as much of the board access logic as possible into functions. For example, write and use a

    getPieceAtLocation(char file, int rank)
    

    and call

    Piece p = getPieceAtLocation('e', 2);
    

    or something along those lines. That way, if you decide to change your mind, you just need to re-write the logic in getPieceAtLocation rather than changing every place where you have to use it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make an mp3 player that passes javascript events to a flash
I'm trying to make a little game that will first show the player a
Ok I am trying to make a dynamic pathing system so the player can
I'm trying make an entity with doctrine that has three associations with other entities
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
I'm trying to make this 2-player web game application using Spring MVC. I have
I'm trying to make some optimizations in a private video player for Linux aiming
I'm trying to make a video download panel for Chrome likes Real Player's one
Im trying to make a small app in c++ that saves midifiles with this
The problem is that I am trying to make certain tiles blocked so the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.