Python Forum
Help with a Matrix nxn with black and white input
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with a Matrix nxn with black and white input
#1
Hi
I need to create an array nxn whose entries are black if they are 1 or white if they are 0

then if we choose a random point, move to the left if the square is black or to the left if it is white, then change the square color and repeat until you return to the initial frame.
Reply


Messages In This Thread
Help with a Matrix nxn with black and white input - by Rosko - Nov-24-2019, 06:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with my Black Jack game... JengaBenga 2 1,360 Sep-27-2022, 01:10 PM
Last Post: JengaBenga
  Creating a circular matrix with one input omnisierra 18 5,829 Oct-02-2020, 01:51 PM
Last Post: perfringo
  Black holes Home alfredocaronia 2 2,057 Mar-28-2020, 05:52 PM
Last Post: alfredocaronia
  define a diagonal matrix from a matrix amalalaoui 1 2,382 May-15-2019, 01:12 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020