Search:

Type: Posts; User: Amrita Ramnauth

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    6,758

    Card Game Logic Problems

    I really need some help with understanding how to do the logic for this card game. It's quite complicated and I've been trying to do it all day and it's due in some hours..It's a lot of code but the...
  2. Replies
    1
    Views
    2,632

    Empty Integer Array

    I'm trying to check an integer array if it's empty. I stored ROGUE values in the array where should be empty and I'm not getting to check if my array is empty or not. Someone please help


    ...
  3. Replies
    1
    Views
    4,927

    Text Based Card Game

    The card game I'm creating is for two players, one user and the other player will be the computer. In general, this is what is suppose to happen:
    The player starts off the game then the computer...
  4. But quick question, how can I clear the contents...

    But quick question, how can I clear the contents of an integer array?
    Setting it to zero won't be useful in this case because 0 sets the array to a value.
    I want to make the array empty well o.o
  5. It works now. (y) Thanks

    It works now. (y) Thanks
  6. I'm trying to do as you said with running a count...

    I'm trying to do as you said with running a count by checking through a second array but I'm running into some problems. Here, a card could have faces in the range 0-12. I'm setting all the values in...
  7. Thank you Think I got it now. :)

    Thank you Think I got it now. :)
  8. Yes the vaild input is always non-negative in my...

    Yes the vaild input is always non-negative in my case. But could you go back to the second array part. I lost you there.
    Thank you
  9. I can loop through the array to see if any value...

    I can loop through the array to see if any value is higher than the integer I specify. The part that I'm not getting is how I store all the larger values and how and I wanna keep track of the number...
  10. Searching an array for several of the same values

    I have a project to submit in two days and I can't wrap my mind around something...Kindly help

    I have a variable storing a number, say int i=5

    I have an array of about 10 numbers stored and I...
  11. Replies
    13
    Views
    4,731

    Yes the program reads the .txt file That's what...

    Yes the program reads the .txt file
    That's what I meant
    My bad
  12. Replies
    13
    Views
    4,731

    Hmm I see Thanks

    Hmm I see
    Thanks
  13. Replies
    13
    Views
    4,731

    I can get to sort up to 100,000

    I can get to sort up to 100,000
  14. Replies
    13
    Views
    4,731

    I'm trying to sort 500k random numbers in my...

    I'm trying to sort 500k random numbers in my codeblocks compiler which I call from a .txt file. When I run the program it just gives me a blinking pointer to the top and does nothing. Any idea of...
  15. Replies
    13
    Views
    4,731

    Yes it's like the selection sort but it's not as...

    Yes it's like the selection sort but it's not as efficient as the selection sort. And the algorithm you posted for it is correct.
    I just wanted to know if that sort exists and what's the name of it...
  16. Replies
    13
    Views
    4,731

    What is this sorting technique?

    I have an
    array[4] = {5, 3, 9, 1}
    I compare the first index with the second and if the second index is smaller then I'll swap the first index with the second.
    After 1st pass I get:
    {3, 5,...
  17. Find Highest Card in Hand and swap with Other Hand

    I'm having some problems with creating a card game known as President. Part of the game requires me to grab the highest card from Hand4 and place it in Hand1 then grab the lowest card in Hand1 and...
  18. Replies
    18
    Views
    16,769

    Yes I realised it was answered already...thanks :)

    Yes I realised it was answered already...thanks :)
  19. Replies
    18
    Views
    16,769

    I haven't even come across that yet...

    I haven't even come across that yet...
  20. Replies
    18
    Views
    16,769

    Shuffling Cards

    I've reached to a point where I have my deck of cards and now I'm trying to shuffle the cards right in the deck then share the cards. I have a shuffle function but it's not working as I intend for it...
  21. Replies
    18
    Views
    16,769

    Never understood the difference. I got it now....

    Never understood the difference. I got it now. Thanks (y)
  22. Replies
    18
    Views
    16,769

    I understand what's going on now but one...

    I understand what's going on now but one question, for line 55, why ++i and not i++?
  23. Replies
    18
    Views
    16,769

    Deck Array Printing Problems

    I've created a deck array and I'm running into a problem when I want to print my cards with their suit and face.
    Here is the code:



    #include<stdio.h>
    #include<stdlib.h>
    #include<time.h>...
  24. Replies
    18
    Views
    16,769

    I think I'll work with an array of struct. Thanks...

    I think I'll work with an array of struct. Thanks for the feedback
  25. Replies
    18
    Views
    16,769

    Arrays and Linked Lists Pt2

    I'm doing a card game which requires me to create a deck of 52 cards, shuffle the deck then share the cards to 4 players (13 cards in each player's hand). From my understanding, I wanted to use a...
Results 1 to 25 of 27
Page 1 of 2 1 2