Android Sudoku Tutorial in Kotlin #1 - Setup and Basic UI

Поділитися
Вставка
  • Опубліковано 3 січ 2019
  • Hey guys, welcome to a new series about programming sudoku in android with Kotlin and Android Architecture Components. In this tutorial, we will setup the project and create some basic UI components for our app.
    Here is a link to the GitHub repository with code from this tutorial: github.com/pj6444/sudoku-andr...

КОМЕНТАРІ • 9

  • @Hacktheplanet_
    @Hacktheplanet_ 2 роки тому

    Hey man, thanks alot! Im currently making my own code to this as a beginner. I wanna do my harsh (but personal🤣) version first but then i will come back and take a look at your better implementation! I watched a bit of your video talking about live data which i was learning about in the android basics guide. Thanks for the videos!

  • @MasAhsan
    @MasAhsan 4 роки тому

    Thanks...

  • @linknero1
    @linknero1 3 роки тому +2

    Este ejemplo requiere usar sí o sí el relative layout, si lo cambias hace raro, no lo cambien, mi duda sería si es posible que se estire para cubrir todo a lo horizontal, porque si cambias la resolución no queda
    Lo mismo pasa con el "wrap_content", con "match_parent" no se centra bien, aunque no quede del todo mal

  • @Legolegger
    @Legolegger 5 років тому

    It seems incredibly difficult to generate the set numbers at the start of a game in my eyes. Are you going to use a database of templates of sorts or will you actually make an algorithm for it? Other than that, I like the idea of this series, thanks for making it!

    • @PatrickFeltes
      @PatrickFeltes  5 років тому +2

      You're right, it is difficult to generate a starting board. I've considered both options, but I have decided to go with a database of templates. In terms of a user experience, it takes too long to generate board, so templates work better. However, I was considering making a standalone video/series going over board generation. Is that something you'd be interested in?

    • @Legolegger
      @Legolegger 5 років тому

      @@PatrickFeltes not gonna lie, that does sound quite intriguing.

    • @PatrickFeltes
      @PatrickFeltes  5 років тому +1

      Great! I'll start the series up once I finish this one!

    • @divided_by_dia446
      @divided_by_dia446 9 місяців тому

      i am not sure, if this way a unique sudoku can be garantueed, but what you can do i generate a random set of the numbers 1 to 9 (random ordered i mean) as one line of the sudoku, then taking the same line, but shifting it a set amount of places (e.g. [1,3,2,4,5,7,8,6,9] shifted 2 to the right: [6,9,1,3,2,4,5,7,8]), each shift makes one line(or row) of the sudoku, when you have your 9x9 grid filled, thats a valid sudoku solution, try to randomize the shifting a bit, so it isnt too obvious, what the solution is, when one of the lines is found. To then create the puzzle you just remove digits from random places. As said, this might not give a unique solvable sudoku, if you remove too many digits i think?

  • @christopherknee5756
    @christopherknee5756 3 роки тому

    You lost me at "this will take a while ..."