Peace be upon you. Playing card games is forbidden even on the phone or computer if it involves betting. If it is without betting, it is still prohibited as a precautionary measure if it is considered a gambling tool in the local culture. The ruling does not differ whether one plays alone or with another person. According to Grand Ayatollah Sayyid Sistani, playing cards is haram with betting, and it is also haram without betting if it is regarded as a gambling tool. According to Grand Ayatollah Sayyid Khamenei, if the game is played on the computer or phone between two people, it is treated like gambling and is forbidden with or without betting. However, if one plays alone, it is permissible as long as it does not lead to any harm.