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 7747049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:26:04+00:00 2026-06-01T10:26:04+00:00

I am working on a game where a shape is generated in a 8

  • 0

I am working on a game where a shape is generated in a 8 x 8 matrix on a canvas . The user needs to identify if a generated shape is symmetrical at the vertical axis or not, so for generating a symmetric shape I am thinking of creating a 4 x 8 array populate the array randomly with 1 and 0 ( for the shapes) once this is done then I iterate over the 4 x 8 array and create another array of 8 x 8 which mirrors the 4 x 8 matrix.

Is there a better way to do this ?

  • 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-01T10:26:05+00:00Added an answer on June 1, 2026 at 10:26 am

    Without seeing code and without knowing what criteria to use, “better” will be very hard to determine.

    That said, your approach sounds reasonable. Give it a try, and be careful not to prematurely optimize. 🙂

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

Sidebar

Related Questions

I am working on a client/server game (C#.NET) where I do not want to
I Am working on a 2D game in XNA that needs some physics. I
Yo everyone! I have been working on an Isometric Tile Game Engine in HTML5/Canvas
I'm working on a simple JavaScript game using HTML5 canvas. It's a very typical
I've been trying to get this Sudoku game working, and I am still failing
I'm working on a game engine in C++ and I have methods like setColour
I'm working on a game that uses local area network. Like most of multiplayer
I am working on a game for iOS and I have to schedule an
Basic summary: Working on a game that generates a 15x15 grid for the player
I'm working on a game where multiple players should be able to play at

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.