card exchange
by Abdul Ahmad
JavaScript
var cardExchange = {
models: {
userAccount: {
name: '',
email: '',
otherPersonalInfo: '',
profile: 'each account cant have many profiles (like WOW - 1 account, many characters)'
},
appProfile: {
name: '',
cards: 'list',
cardGroup: '',
cardPack: '',
money: '',
gems: '',
},
card: {
info: 'each user account can have many cards',
type: '',
value: 'common200/uncommon500/rare2000-5000/super-rare5-10k/secret10k-1000k',
cardPack: 'pack it belongs to',
otherInfo: ''
},
cardGroup: {
info: 'grouping cards into a set',
name: 'name of group',
type: 'maybe a type in the future (type of group)',
cards: 'list of cards'
},
gems: {
info: 'each userAccount gets 1 money object',
profile: 'account this money belongs to',
type: 'gem type or money type',
number: 'number of specific gem or money',
value: 'int - common gems might be 1, rare gems 100, secret gems 1000'
},
gold: {
info: 'money'
},
cardPack: {
}
},
register: {
getRandomStartingCards: 'random 20 cards',
getStartingMoney: '2000? (or gems, ruby, emerald, sapphire, citrine (orange), diamond (or more unique names))',
get3RandomPacks: '',
enterDashboardHome: {
needSomethingToShowCurrentStuff: {
likeMoney: '',
profilePicThing: '',
someSortOfRating: '?',
cardSummary: {
howMany: '',
showMostValuable3To5: '',
whichPacksTheyComeFrom: '',
completion: 'x out of x from certain pack'
}
}
},
},
};
/*
ruby cheat sheet:
variables = like python:
variable = 5
name = 'abdul'
@variable = instance variable
@@variable = static variable
$variable = global
dictionaries = different
dictionary = {
key => value,
'one' => 1,
'etc' => 'more'
}
*/
//run...