Can I make chess from scratch in Flutter in 2 hours?

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 13

  • @flutter--help8127
    @flutter--help8127  2 роки тому +6

    The answer is no lol. But it went fairly well. Would you guys like me to continue on this project? The only cut to the video I made was when I forgot to add the "assets/" to the filename, that took way too long to figure out.
    A couple things I realized afterwards:
    - There is no reason to filter off invalid locations because the drag targets don't exist off screen
    - I also did this incorrectly anyways as I needed to check if the (x,y) were above 0 as well
    - I forgot to check for a capture was an enemy piece
    - Moving on diagonals should have been on the base class so I could re-use that logic for queens

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

    bro how the fuck do u just code like i cant even imagine bro the speed with which you code is just mind blowing and also the way u think about solutions too amazing wish i could ccode like u 1 day!!

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

    Awesome flutter channel!

  • @dsyoutube7116
    @dsyoutube7116 2 роки тому +1

    Thanks for your video. It help me a lot. I have a problem with this. When a button press, I need to get all the 4 bishops' x coordinates into one list. Ex: [x1,x2, x3, x4] how can I do it. Please can you help me?

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

    Can you make code of rooks

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

    Can you post the files for this one?

    • @flutter--help8127
      @flutter--help8127  2 роки тому +1

      Sure, I'm going to work on it more today and make a git repo. Next video will have git repo in the description

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

      @@flutter--help8127 Thanks, although no needed extra stuff. Just need this for reference and it would be a pain to check the video everytime, with the exact time stamp etc.

    • @flutter--help8127
      @flutter--help8127  2 роки тому +1

      @@hellpunch9414 github.com/MilesAdamson/chess_live_coding

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

      @@flutter--help8127 ty :), i'll check it when i can

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

    To color the board is simply ((row + col).isEven) ? white : black,