Code Monkey home page Code Monkey logo

termproject's Introduction

HidatoPuzzle - Generator

hidato

가로 세로 길이를 5이상 15이하의 값으로 랜덤하게 생성하여 퍼즐을 생성하며 그 퍼즐에서 벽을 랜덤으로 생성하여 -1로 초기화하는데 만약 그 지점이 시작점이거나 이미 벽이라면 다른 지점을 벽으로 생성한다. -1인 부분은 못가는 곳이다. 시작점은 (3,3)이다. 출력으로는 txt파일에 첫줄에는 테스트케이스, 두번째 줄에는 가로 세로 길이, 세번째 줄에는 퍼즐 배열이 주어진다. 만약 벽을 생성하고 시작점부터 시작하여 히다토퍼즐을 생성할수있으면 txt파일로 출력하고 만약 생성할수없다면 생성할수 있을때까지 다시 함수를 돌려 퍼즐을 생성한다. 퍼즐을 생성후 랜덤한 숫자만큼 퍼즐 내 값을 0으로 초기화하여 배열을 생성한다. 이때 생성된 배열을 txt 파일로 solver에게 전달한다.

termproject's People

Contributors

kim-yonguk avatar

Watchers

James Cloos avatar

termproject's Issues

출력 내용

출력시에 completeArr은 제거, txt에는 테스트케이스,배열의 가로세로길이,시작,마지막점,deleted arr정도 주어지면 될듯

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.