A Singaporean man allegedly hit his former girlfriend in the head with a hammer after she rejected his advances, a Brisbane court has heard.

Key points: The Supreme Court heard Guan Wen Brian Tan attacked his former girlfriend Sherry Cheung with a hammer and knife

The Supreme Court heard Guan Wen Brian Tan attacked his former girlfriend Sherry Cheung with a hammer and knife It is alleged the pair had been in a relationship for two years but had broken up

It is alleged the pair had been in a relationship for two years but had broken up Mr Tan visited Ms Cheung in Australia where they played computer games before the attack

Guan Wen Brian Tan, 33, repeatedly struck Sherry Cheung with the 36-centimetre-long tool without warning before then stabbing her with a knife in his Airbnb rental at Norman Park on May 8, 2017.

The Supreme Court in Brisbane heard the pair had been playing computer games before Mr Tan asked the 20-year-old Hong Kong woman if she thought they "would ever be together" and she allegedly replied, "no, never".

Crown prosecutor Mel Wilson said after hitting her with the hammer, he allegedly grabbed her by the arms as he asked her: "How could you be so cruel?"

The court heard he covered her mouth to try to muffle her screams and also choked her.

After Ms Cheung managed to grab hold of the hammer and move towards the door to escape, Mr Tan grabbed a 23cm-long knife from a drawer and stabbed her in the neck.

The court heard she then used the hammer to smash the glass, which alerted the neighbours, and he fled.

She was taken to the Princess Alexandra Hospital with multiple wounds and two skull fractures.

The court heard the pair met in 2015 while playing online games and started a long-distance relationship, however Ms Cheung ended it two years later.

Twenty-four hours before the attack, Mr Tan contacted her to say he was travelling to Australia to visit her, though she told him that she was in a relationship with somebody else.

The court heard they met up for breakfast in Brisbane and caught an Uber back to his Airbnb.

The prosecution said Ms Cheung agreed to visit him again that night to play computer games.

That afternoon, Mr Tan allegedly bought chocolates and a hammer from the Reject Shop.

"The Crown alleges … he purchased the hammer in anticipation that he would use it to attack the complainant … if she rejected his advances that night," Ms Wilson said.

"At this stage … the defendant claims he purchased it as as gift.

"In the Crown submission, it wasn't a gift. The hammer was not wrapped. There was no gift card purchased."

Mr Tan was originally charged with attempted murder but in February pleaded guilty to the lesser charge of wounding with intent to cause grievous bodily harm.

The matter was adjourned until next month.