Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: naval battle game problem help  (Read 11991 times)

0 Members and 1 Guest are viewing this topic.

orux

    Topic Starter


    Rookie

    • Experience: Beginner
    • OS: Windows 7
    Re: naval battle game problem help
    « Reply #30 on: November 03, 2013, 06:02:27 AM »
    I do understand you, problem is, I'm not sure if I can use English in my code (you know, I'm not exchange student or anything, so why should I use it). Anyway, for now more than half of code commands is in English.
    Translation of rest:

    @echo off
    echo laivu musis.
    echo 2 zaidejai.
    echo Ar norite pradeti?
    echo jei taip spauskite, bet kuri klavisa, jei ne ctrl+c.
    pause>null
    // 2nd line: naval battle
    // 2 players
    // do you wabt to start?
    // if so press anything, if not ctrl+c //these are kinda default

    echo pasirinkite:
    echo T - Pradeti zaidima
    echo N - Baigti zaidima

    CHOICE/c:TN

    //echo pasirinkite == choice:
    //T == start game
    //N == end game

    echo pirmas zaidejas iveda savo 10 laivu. 1 koordinate = 1 laivas
    //first player enters his fleet of 10 ships 1coordinate equals 1 ship

    prn1 like message1 or msg1

    :prn1
    echo tokiu koordinaciu but negali, iveskite is naujo.
    goto firstplayer

    //echo such coordinates does not exist, repeat.
    where u can see rem saudymas means shooting, on other echos it just says that either it's hit or missed. I believe other commands are in english already.

    Anyway, I think i just need to delete variable if it's hit and next time on picking coordinates to output message which would say that i already hit that and it no longer exist. but then still how to check weather there are any variables left?

    hope this helps a bit.

    foxidrive



      Specialist
    • Thanked: 268
    • Experience: Experienced
    • OS: Windows 8
    Re: naval battle game problem help
    « Reply #31 on: November 03, 2013, 06:51:52 AM »
    I do understand you, problem is, I'm not sure if I can use English in my code (you know, I'm not exchange student or anything, so why should I use it).

    You're posting to a forum that is in English, and asking for free help.  I think they are a good reasons. :)

    After it is all done you could graciously post it for others to use, and an English copy would be widely appreciated.

    orux

      Topic Starter


      Rookie

      • Experience: Beginner
      • OS: Windows 7
      Re: naval battle game problem help
      « Reply #32 on: November 03, 2013, 07:19:48 AM »
      I will post English version here once I'm done with it, but I need to finish it first :P.