mardi 17 janvier 2023

Write a Lua program that opens a text file which contains a series of numbers line by line in a rectangular pattern. Rows and columns represent stages

Write a Lua program that opens a text file which contains a series of numbers line by line in a rectangular pattern and reads it into an appropriate data structure of your choice. The rows and columns represent stages in a process (numbered from 0) with the value 1 representing it being possible to move from one stage to another. 0 represents the case where it is not possible to move from one stage to another.

I tried using arrays, functions and tables to solve my problem and come up with an answer but it was not working

Aucun commentaire:

Enregistrer un commentaire