Skip to content

Instantly share code, notes, and snippets.

@kavyak28
kavyak28 / highlight issue in the Discard Pile
Created January 14, 2022 09:55
highlight issue in Discard Pile
01-15 15:04:31.012 18207 18239 I Unity : isValidMeld: False
01-15 15:04:31.012 18207 18239 I Unity : Calling isValidRankSequenceWithJokers : plrCards: S3 S8 S9 S10 S6
01-15 15:04:31.012 18207 18239 I Unity : returned isValidRankSequenceWithJokers isValidMeld: False
01-15 15:04:31.013 18207 18239 I Unity : isValidValueSequenceWithJokers? : jokers.Count: 0, difference: 3, initialMeldCount: 5, isValidMeld: False
01-15 15:04:31.013 18207 18239 I Unity : isValidMeld: False
01-15 15:04:31.013 18207 18239 I Unity : Calling isValidRankSequenceWithJokers : plrCards: S8 S9 S10 S6
01-15 15:04:31.013 18207 18239 I Unity : returned isValidRankSequenceWithJokers isValidMeld: False
01-15 15:04:31.013 18207 18239 I Unity : isValidValueSequenceWithJokers? : jokers.Count: 0, difference: 1, initialMeldCount: 4, isValidMeld: False
01-15 15:04:31.013 18207 18239 I Unity : isValidMeld: False
01-15 15:04:31.013 18207 18239 I Unity : Cards List:
@kavyak28
kavyak28 / P1_468
Created January 11, 2022 11:39
indexoutofrangeexception
IndexOutOfRangeException: Index was outside the bounds of the array.
GamePlayScript.ShowAllGamePlayersCardsintheUI (System.Int32 playerIndex, System.Boolean isShow) (at <81ab95a87633491884aca0e3196cb0ab>:0)
GamePlayScript.HandleGameUISetupToPlayer (System.Int32 prevGameState, System.Single timeInSecs) (at <81ab95a87633491884aca0e3196cb0ab>:0)
GamePlayScript.onGamePlayDataInfoFromMasterReceived (System.Int32 playerID, System.String gamePlayData, System.String bidGameplaydata, System.Single timeInSecs) (at <81ab95a87633491884aca0e3196cb0ab>:0)
PhotonManager.sendGamePlayInfoToPlayerRPC (System.Int32 playerID, System.String gamePlayData, System.String bidGameplaydata, System.Single timeinSecs) (at <81ab95a87633491884aca0e3196cb0ab>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <fdedd5ea241c4356a5a965cc305c0fd2>:0)
Rethrow as TargetInvocationException:
@kavyak28
kavyak28 / bug #457
Created January 10, 2022 12:26
game hangs
Unity iOS Support: App Tracking Transparency status not checked, because the platform is not iOS.
Notification Set 1.00:00:00 : => member name: SetAndroidLocalNotificationWithReward : => source line number: 148
ios more games url : => member name: GetIosMoreGamesURL : => source line number: 788
@kavyak28
kavyak28 / P1_device
Created January 10, 2022 05:52
Meld is getting highlighted for invalid cards are selected
updatePlayerCardsDisplayTest
cardonscreen: 15 player cards count: 8
Align Cards
Sort and swap card positions
Sort
isCardSorting false
isResultShown: False Card Selected: D11 (Card) c.mIsDiscardCard: False c.mIsDeckCard: Falseplayer.mIsCardTaken: True Tapable: True cardsInDeck 17
player.mIsTurn: True,c.mTapable: True player.isCardsSortingStopped: TrueisMeldCompulsive False isJokerPanelShown: False
mIsPlayerCard
Hide Toast
@kavyak28
kavyak28 / Case 2 295_Bug
Created January 4, 2022 11:41
Case 2 _295 bug
Reset meld points
Destroy: Row1 child: H11 S11 D11
Destroy: Row2 child: S4 D4 C4
Destroy: Row3 child: S8 S7 S6 S5
Destroy: Row4 child: C13 C12 C11
New Round
Enable hand scroll: False
UpdateMeldPoints: 1
updateMeldPoints: Total Score of Player: 1 is : 0
UpdateMeldPoints: 2
@kavyak28
kavyak28 / AI behavior
Created January 4, 2022 05:32
AI behavior
fetchAllUsefulDiscards discardedCards: S5 S13 C8 C13
fetchAllUsefulDiscards without any other cards:
fetchAllDiscardsUsefulWithPlayerCards:
cardsList now: D4 D5 D1 S8 S11 H3 H5 H8 H11 H1 S5 S13 C8 C13 , meldName: NoMeld, meld state: NONE
pickUsefulDiscardsFromSequences: meld: NO MELD
getAllMySequences : D4 D5 D1 S8 S11 H3 H5 H8 H11 H1 S5 S13 C8 C13
getSequences: D1 H1 H3 D4 D5 H5 S5 S8 H8 C8 S11 H11 S13 C13
getAllMySequences returned with seqs: 0
pickUsefulDiscardsFromSequences: goAhead: True,ogSeqs.Count: 0
pickusefulDiscardsFromSets:
@kavyak28
kavyak28 / Valid card is not getting highlighted
Created January 3, 2022 12:20
Valid card is not getting highlighted
Load Level.............. : => member name: LoadGameScene : => source line number: 1198
gameManager Init
Test Submit Stat for leaderboard is enabled. Follow the comment and disable it : => member name: InitApp : => source line number: 99
SubmitStats : 547 : => member name: SubmitStatistic : => source line number: 895
@kavyak28
kavyak28 / Bug 154_AI hits wrong card
Created January 3, 2022 09:46
Bug 154_AI hits wrong card
isValidMeldGroup:: D11 D9 D8 N15
getSequences: D8 D9 D11
isValidRankSequenceWithJokers:: D11 D9 D8
card: D11, nextCard: D9
card: D9, nextCard: D8
isValidRankSequenceWithJokers jokers.Count: 1, difference: 1, initialMeldCount: 4, cardCount: 4
meld : D8 D9 D11 N15 : SEQUENCE
card with lowest Discrd index: D11 (Card)
its a sequence and c is : D11
adding: D11 to usefulcards list
@kavyak28
kavyak28 / Arrow icon is missing
Created December 30, 2021 06:28
Arrow on the Meld Pile is not getting highlighted, when player has valid cards to hit
Iron jaw
11:57 AM (0 minutes ago)
to me
updatePlayerCardsDisplayTest
Discard Card: card: S3
addToDiscardCardsList discardedCards.Count: 2
addToDiscardCardsList card.discardCardIndex : 3
Calling MoveCard
@kavyak28
kavyak28 / wrong hit issue
Created December 29, 2021 09:56
AI hits incorrectly
getAllMySequences : D6 H7 H6 D10 C6 S7 S6 S13 D12 D13 D1
m from pure seqs: D1 D13 D12
getSequences: D1 D6 H6 C6 S6 H7 S7 D10 D12 S13 D13
getAllMySequences returned with seqs: 1
pickUsefulDiscardsFromSequences: goAhead: True,ogSeqs.Count: 1
pickUsefulDiscardsFromSequences in the LOOP: D1 D13 D12
1st fetchUsefulDiscardsInSequences: seq: D1 D13 D12
fetchUsefulDiscardsInSequences: seq: D1 D13 D12
meld : C8 C9 C10 C11 C12 C13 : SEQUENCE
meld: C13 C12 C11 C10 C9 C8 , meldState: ms: SEQUENCE