A teenager accused of stabbing a 17-year-old to death in Halifax watched stabbing videos days before the killing.
Jamie Brown died from a single wound after being attacked at a Halloween party in Ovenden, Halifax, on 27 October.
The accused, also 17, who cannot be named, denies murder and an alternative charge of manslaughter.
Leeds Crown Court heard he looked at a graphic video of a man being stabbed to death in a jail "out of curiosity".
He also denies wounding with intent, violent disorder and possession of an offensive weapon.
Three other youths also face charges.

ANPR Cameras Planned to Tackle Rat-Running in West London
Manchester's £30m Investment Delivers Cleaner Streets and Better Neighbourhoods
Bradford Man Charged with Murder and Attempted Murder After Two Women Attacked
Bradford Councillor Ibrar Ali Seriously Injured in Stabbing as Man Arrested
Ayushmann and Sharvari's New Film Challenges Marriage Traditions
Parents Fight Plans to Close West London Primary School
Burnley Man Charged Over Seven Business Burglaries
Bradford Men Arrested After Violent Jewellery Robbery Leaves Worker Fighting for Life
Man Seriously Injured in Halifax Assault as Police Make Arrest
Croydon Mayor Calls for Major Rail Upgrade to Unlock Growth
West London Street Named Second Coolest in the World
Leeds Police Operation Targets 36 Homes Linked to Crime and Anti-Social Behaviour
Bhangra Nights
Legal Show
Alim OnAir
The Golden Era