RBuster's Recent Forum Activity

  • Here's an example of it in action:

    https://dl.dropboxusercontent.com/u/542 ... lists.capx

    Basically look at every pair of lists with two loops like I mentioned above. Families can be used to pick both at once or you can just pick each individually like in the capx. In the capx I copy the list over to an array, and then sort the array. Next if the number of items is the same we can compare each item and see if they're equal, and if they are you can mark those lists as no unique.

    A BIG THANK YOU!!! I will analyse each line of this capx to really understand what I would have to have done to create it. Thanks a lot for each millisecond of the time that you have spent on it.

  • I will create an example for you understand what I am doing in a few minutes.

  • R0J0hound

    Thanks for the reply. My data will be located in 25 lists aprox. (with 1 to 10 items per list) and I don't know why I need to populate an array with this data. Actually, I thought that I did not need to insert this information into the arrays.

  • Up

  • Could someone help me with this issue, please? My project is almost ready and I just need to verify the lists at the end. If the lists are not the best solution, I'm open to suggestions. Just to exemplify: I'm using more than 20 lists with numbers that represent a type of the fruit and its amount (e.g. 1- 4) and I need to check at the end how many lists are equals (same number of items and the same combinations independently of the order) or not. (e.g.: list1(1-4, 2-3) = list2 (2-3, 1-4) but not equal to list3 (1-4,2-3,4-9)). Thanks in advance for any help.

  • I need to compare several lists (more than 20) and each one of these lists could have from 1 to 10 items and these items are not in the order. At the final I just need to know how many of these lists are equal or not. (e.g. 20 lists: 10 equals/10 unique). I have looked some examples but they compare all the items regardless of the lists

    Thanks in advance.

  • Up

  • Sorry but I'm still stuck here. Besides the previous problem, I also need some help to populate the array with the list items.

    Thanks in advance.

  • I have done some tries but I really don't know how can I do to get all the lists and check the result of the total of equal and different lists.

  • Sure. I just added that information at the end just to be more specific (I was afraid to create a misunderstood between the items and lists). My doubt is about the comparison result: can I have an unique result as I have described above?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • dropbox.com/s/7b0cj47x15h2gpb/PokulusRift.capx

    But, if you going to compare/evaluate that much with lists, it might be better to keep the base data in 1 array and use the lists only to display/select. In othere words, as the UI element they are meant to be.

    Ok. You are right.

    Thanks for the example (more one). In regarding to the comparison, I can use this same solution to compare all the lists together, right? I need an unique result (e.g. 10 results equals and 25 different). I believe so, but I would like to confirm that.

    Edited: Just to be more specific: I am still talking about lists. In this case, imagine that I have 35 lists (10 equals/25 different).

  • Well, how exacter the question how less general the answer eh.

    & yw.

    I know. Sorry about that.

    Do you know if is possible to compare all the list content to know how many lists are equal or not, instead the items?

    For example: list1(orange, apple, pineapple) equal to list2(orange, pineapple,apple) but not equal to list3(orange, apple, pear)

RBuster's avatar

RBuster

Early Adopter

Member since 29 Oct, 2012

Twitter
RBuster has 2 followers

Connect with RBuster

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies