1) If there is another party you are playing with like a friend or another real player, not machine, then it is not permissible, otherwise, it is not recommended (makrooh), as it might lead to making it a habit.
2) If you are playing with real people, then it is haram.