Results -9 to 0 of 144

Threaded View

  1. #11
    Player
    Koros's Avatar
    Join Date
    Jul 2023
    Posts
    304
    Character
    Koros Drakon
    World
    Siren
    Main Class
    Paladin Lv 100
    Quote Originally Posted by Katish View Post
    There should be no math done on a boolean check if there is math, they are doing it wrong lel. They should be checking yes or no, that's it. Assuming houses are objects and players are objects, which they should be...
    this will be somewhat pseudo, as this is pseudo will not follow an actual language but should be understandable...:"
    bidUI(); <---opens UI

    void houseConfirm(object house, object player){
    //fetch dynamic assigned housing dates and confirm it is a biddable house...would need to declare function that does that
    bool houseBool = isBiddableHouse(house);
    if(houseBool && buttonPress(specificBidButton)){
    onBid(player);
    } else {
    //fetch arraydata as you should implement a function to manipulate and get the player winner
    object winner = houseWinner();
    ---> Assign houseWinner to a newArray that will check if the player already owns a house...
    }

    }

    object houseWinner(){
    //this is where we would fetch our array data so let's assume we made that function...fetch data handles manipulation to read back into a new array;
    array myFetchData = manipulateData("...locationOfData");
    int rand = newrand(myFetchData.GetSize()-1); <--- this would get an int at random by our array size (i.e the maximum number), as arrays start at zero we would need to -1
    object playerWinner = myFetchData[rand];
    return playerWinner;
    }

    void onBid(object player, int date){
    //closeDate will need to be the date at which you can bid until, after bidding allow the houses to do nothing
    int closeDate;
    if(date < closeDate) {array bidArr = arrBid(player);} else {player.ShowMsg("The bidding for this house has passed");}
    }

    array arrBid(object player) {
    array myArray;
    //We assume server has a method to return to player name as this is quite a staple.
    myArray.Add(player.GetName());
    return myArray;
    //convert array to string if you plan to save it to file, you will need to make a separate fetch function
    }

    this outlines the general idea...the logic might not be 100% sound as I have no way of testing unless I made a program and followed the instructions but again this was done out quickly.
    I don't trust the numbers they show if they can't do this much...
    honestly people don't realize that outside of silicon valley and a select few top companies (of which game companies are not) most programmers are really bad.

    se can't hope to beat L5 salaries at Meta or Google.

    the median coder at a video game company never took algorithms and thought intro to python was a hard class, like no offense, the disparity is huge.

    of course, they have other comparative advantages like passion or having a good intuition for what makes good game design, but if management keeps overriding their ideas and if they get no funding, they can't do much
    (9)
    Last edited by Koros; 07-24-2023 at 04:38 AM.