szmer
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Ludrol to AnarchyChess@sopuli.xyz · 1 year ago

Does an array start with 1 or 0?

message-square
13
fedilink
77

Does an array start with 1 or 0?

Ludrol to AnarchyChess@sopuli.xyz · 1 year ago
message-square
13
fedilink
alert-triangle
You must log in or # to comment.
  • WoolyNelson@lemmy.world
    link
    fedilink
    arrow-up
    33
    ·
    1 year ago

    Pretty sure they start with “a”.

    • teft@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      edit-2
      1 year ago

      They start with a what???

      • Zachariah@lemmy.world
        link
        fedilink
        arrow-up
        16
        ·
        1 year ago

        “whatrray”

        That doesn’t seem right.

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        I think he’s saying that a raise begin at 0x61.

  • jbrains@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    Chess was written in BASIC?!

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      This is probably not going to be funny to anyone but me, but actually it was written in Lua.

      • jbrains@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Lua? Are those even arrays? 🤷‍♂️

        • Ephera@lemmy.ml
          link
          fedilink
          arrow-up
          5
          ·
          1 year ago

          Well, no, they’re tables, because where else would you play chess? 🙃

    • Monke@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Always has been

  • iAvicenna@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    was -1 the last entry or one before last?

  • abclop99@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    0

  • Olmai@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    shouldn’t there be a black rook on a1 ?

    • velvetThunder@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      The black rook causes a Buffer Overflow / Out Of Bounce Exception. It’s not a single Data type that flips after it gets incremented after the maximum storageable value.

      At least that’s what I am thinking of, trying to implement chess in Java or C.

AnarchyChess@sopuli.xyz

anarchychess@sopuli.xyz

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !anarchychess@sopuli.xyz

Holy hell

Other chess communities:
!Chess@lemmy.ml
!chessbeginners@sh.itjust.works

Matrix space

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 12 users / day
  • 270 users / week
  • 1.03K users / month
  • 4.27K users / 6 months
  • 10 local subscribers
  • 5.63K subscribers
  • 680 Posts
  • 6.03K Comments
  • Modlog
  • mods:
  • itszednotzee@sopuli.xyz
  • It'sZedNotZee@lemmy.antemeridiem.xyz
  • BE: 0.19.6
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org