Posts

how to deal cards to multiple players card game C

Image
-2 I am trying to make a card game in c, I am a bit stuck on how to deal the cards to a selected amount of players. Could anyone give me some guidelines on how to do this? I will post the code below, Thanks in advance and happy new year!!! #include<stdio.h> #include <stdlib.h> //random number generator functions #include <string.h> #include <time.h> #include <ctype.h> #define CARDS 52 int playerAmount; int deckAmount; int drawPosition = 0; int deckPosition = 0; char gamePlay; int handNumber = 0; int players; const char *numeric = { "Two","Three","Four","Five","Six","Seven", "Eight","Nine","Ten","Queen", "Jack","King",...

HDMI port not detected in Ubuntu 18.04

Image
0 I have recently bought an hp Zbook 15 G5 where I have installed an Ubuntu 18.04 partition. I want to connect it to a monitor, but if does not work. The HDMI port is not detected at all. This is the output of the xrandr command: xrandr: Failed to get size of gamma for output default Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080 default connected primary 1920x1080+0+0 0mm x 0mm 1920x1080 77.00* And this is the output of the lspci -v command: 00:00.0 Host bridge: Intel Corporation Device 3ec4 (rev 07) Subsystem: Hewlett-Packard Company Device 842a Flags: bus master, fast devsel, latency 0 Capabilities: <access denied> 00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 07) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0...